Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ from PIL import Image
|
|
18 |
def get_model(args,arch,load_from,arch_path):
|
19 |
if load_from == 'timm':
|
20 |
model = create_model(arch,pretrained = True).to(args.PARAMETERS.device)
|
|
|
21 |
elif load_from == 'torchvision':
|
22 |
if arch == 'resnet50':
|
23 |
model = torchvision.models.resnet50(pretrained=False)
|
|
|
18 |
def get_model(args,arch,load_from,arch_path):
|
19 |
if load_from == 'timm':
|
20 |
model = create_model(arch,pretrained = True).to(args.PARAMETERS.device)
|
21 |
+
print("Load model timm")
|
22 |
elif load_from == 'torchvision':
|
23 |
if arch == 'resnet50':
|
24 |
model = torchvision.models.resnet50(pretrained=False)
|