hasibzunair commited on
Commit
0ce6186
β€’
1 Parent(s): dd96563

make folders in app.py

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +16 -17
.gitignore CHANGED
@@ -6,6 +6,7 @@ inputs/
6
  results/
7
  checkpoints/
8
 
 
9
  *.pth
10
 
11
  # Byte-compiled / optimized / DLL files
6
  results/
7
  checkpoints/
8
 
9
+ *.db
10
  *.pth
11
 
12
  # Byte-compiled / optimized / DLL files
app.py CHANGED
@@ -21,23 +21,22 @@ print(f"####Using {device}.#####")
21
 
22
 
23
  # Make directories
24
- if not os.path.exists("./Data_preprocessing"):
25
- os.system("mkdir ./Data_preprocessing")
26
- os.system("mkdir ./Data_preprocessing/test_color")
27
- os.system("mkdir ./Data_preprocessing/test_colormask")
28
- os.system("mkdir ./Data_preprocessing/test_edge")
29
- os.system("mkdir ./Data_preprocessing/test_img")
30
- os.system("mkdir ./Data_preprocessing/test_label")
31
- os.system("mkdir ./Data_preprocessing/test_mask")
32
- os.system("mkdir ./Data_preprocessing/test_pose")
33
- os.system("mkdir ./inputs")
34
- os.system("mkdir ./inputs/img")
35
- os.system("mkdir ./inputs/cloth")
36
- os.system("mkdir ./saved_models/")
37
- os.system("mkdir ./saved_models/u2net")
38
- os.system("mkdir ./saved_models/u2netp")
39
- os.system("mkdir ./pose")
40
- os.system("mkdir ./checkpoints")
41
 
42
 
43
  # Get pose model
21
 
22
 
23
  # Make directories
24
+ os.system("mkdir ./Data_preprocessing")
25
+ os.system("mkdir ./Data_preprocessing/test_color")
26
+ os.system("mkdir ./Data_preprocessing/test_colormask")
27
+ os.system("mkdir ./Data_preprocessing/test_edge")
28
+ os.system("mkdir ./Data_preprocessing/test_img")
29
+ os.system("mkdir ./Data_preprocessing/test_label")
30
+ os.system("mkdir ./Data_preprocessing/test_mask")
31
+ os.system("mkdir ./Data_preprocessing/test_pose")
32
+ os.system("mkdir ./inputs")
33
+ os.system("mkdir ./inputs/img")
34
+ os.system("mkdir ./inputs/cloth")
35
+ os.system("mkdir ./saved_models/")
36
+ os.system("mkdir ./saved_models/u2net")
37
+ os.system("mkdir ./saved_models/u2netp")
38
+ os.system("mkdir ./pose")
39
+ os.system("mkdir ./checkpoints")
 
40
 
41
 
42
  # Get pose model