Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,6 +25,10 @@ from torchvision.models import resnet18
|
|
| 25 |
|
| 26 |
#device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
| 27 |
with_points = True
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
file_savingfolder = './modelbest/'
|
| 29 |
ext = '_bestVal'
|
| 30 |
core_model_tst = resnet18(pretrained=True)
|
|
|
|
| 25 |
|
| 26 |
#device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
| 27 |
with_points = True
|
| 28 |
+
dim = 128
|
| 29 |
+
dim0 =224
|
| 30 |
+
crop_ratio = dim/dim0
|
| 31 |
+
|
| 32 |
file_savingfolder = './modelbest/'
|
| 33 |
ext = '_bestVal'
|
| 34 |
core_model_tst = resnet18(pretrained=True)
|