-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (18 loc) · 801 Bytes
/
Copy pathsetup.py
File metadata and controls
26 lines (18 loc) · 801 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
import os
"""
File that creats the folders neccessary for the project
./img to save images
./pretrained to save pretrained models
./re_roc to save the reconstruction error to create roc curve plot
./re_roc to save the roc curve plot
"""
path = [ './imgs/diff','./imgs/imgrecon', './pretrained', './pretrained/diffusion', './pretrained/diffusion/MNIST',
'./pretrained/diffusion/KMNIST', './pretrained/MNIST', './pretrained/KMNIST',
'./re_roc','./re_roc/AA', './re_roc/DF' , './re_roc/EN', './re_roc/EOTPGD',
'./re_roc/FGSM', './re_roc/PGD', './re_roc/SA', './re_roc/roc_plot']
for p in path:
if not os.path.exists(p):
os.mkdir(p)
print("Folder %s created!" % p)
else:
print("Folder %s already exists" % p)