Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
@@ -36,13 +36,9 @@ from torchvision import datasets, transforms, utils
|
|
36 |
|
37 |
save1_or_load0 = False
|
38 |
|
39 |
-
|
|
|
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
|