-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclean_directories.py
108 lines (84 loc) · 3.01 KB
/
clean_directories.py
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import os, glob
def clean_static():
dir = 'static/uploads'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'static/inputs_cloth_mask'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'static/inputs_cloth_mask_modified'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
def clean_output():
dir = 'output/test/test/unpaired/generator/cloth_segment'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/cloth_segment_resized'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/model_cloth_segment_resized'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/output'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/output_resized'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/output_sharpened'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/warped_clothmask'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'output/test/test/unpaired/generator/warped_clothmask_resized'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
def clean_my_data():
dir = 'models/hrviton/my_data/test/agnostic-v3.2'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/cloth'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/cloth-mask'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/image'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/image-densepose'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/image-parse-agnostic-v3.2'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/image-parse-v3'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/openpose_img'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)
dir = 'models/hrviton/my_data/test/openpose_json'
filelist = glob.glob(os.path.join(dir, "*"))
for f in filelist:
os.remove(f)