Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ os.system("wget https://github.com/liuxiaoyuyuyu/vanGogh-and-Other-Artist/blob/m
|
|
15 |
model = models.mobilenet_v2(pretrained=True)
|
16 |
num_ftrs = model.classifier[1].in_features
|
17 |
model.classifier[1] = nn.Linear(num_ftrs, 6)
|
18 |
-
model = model.to(device)
|
19 |
#model.load_state_dict(torch.load('model_weights_mobilenet_v2_valp1trainp2.pth'))
|
20 |
|
21 |
#torch.hub.download_url_to_file("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg")
|
|
|
15 |
model = models.mobilenet_v2(pretrained=True)
|
16 |
num_ftrs = model.classifier[1].in_features
|
17 |
model.classifier[1] = nn.Linear(num_ftrs, 6)
|
18 |
+
#model = model.to(device)
|
19 |
#model.load_state_dict(torch.load('model_weights_mobilenet_v2_valp1trainp2.pth'))
|
20 |
|
21 |
#torch.hub.download_url_to_file("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg")
|