raja5259 commited on
Commit
d415594
·
verified ·
1 Parent(s): 19aa1d3

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -36,13 +36,9 @@ from torchvision import datasets, transforms, utils
36
 
37
  save1_or_load0 = False
38
 
39
- !mkdir -p /content # This path will be used for saving the weights file after training
 
40
 
41
- !git clone https://github.com/rajayourfriend/EraV2/
42
- !cp EraV2/S14/*.py .
43
- !cp EraV2/S14/*.jpg .
44
- if save1_or_load0 == False:
45
- !cp /content/EraV2/S14/weights_92.ckpt /content/weights.ckpt
46
  wt_fname = "/content/weights.ckpt" # weights file name to load
47
 
48
  model, trainer = ts_lt(save1_or_load0, Epochs = 26, wt_fname = "/content/weights.ckpt") # Train and Save Vs Load and Test
 
36
 
37
  save1_or_load0 = False
38
 
39
+ if not os.path.exists("/content"):
40
+ os.makedirs("/content") # This path will be used for saving the weights file after training
41
 
 
 
 
 
 
42
  wt_fname = "/content/weights.ckpt" # weights file name to load
43
 
44
  model, trainer = ts_lt(save1_or_load0, Epochs = 26, wt_fname = "/content/weights.ckpt") # Train and Save Vs Load and Test