-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_project.py
More file actions
42 lines (37 loc) · 977 Bytes
/
setup_project.py
File metadata and controls
42 lines (37 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# setup_project.py
import os
def create_project_structure():
# Main directories
directories = [
'data/train/reflected',
'data/train/clean',
'data/val/reflected',
'data/val/clean',
'models',
'utils',
'checkpoints',
'logs'
]
# Create directories
for dir_path in directories:
os.makedirs(dir_path, exist_ok=True)
print(f"Created directory: {dir_path}")
# Create empty Python files
files = [
'models/__init__.py',
'models/swin_transformer.py',
'models/diffusion.py',
'utils/__init__.py',
'utils/dataset.py',
'utils/training.py',
'config.py',
'train.py',
'requirements.txt'
]
# Create files
for file_path in files:
with open(file_path, 'a') as f:
pass
print(f"Created file: {file_path}")
if __name__ == "__main__":
create_project_structure()