Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ from dataset.dataset import *
|
|
19 |
|
20 |
|
21 |
model = ResNet18(20, None)
|
22 |
-
model = model.load_from_checkpoint("
|
23 |
model.eval()
|
24 |
|
25 |
dataloader_args = dict(shuffle=True, batch_size=64)
|
|
|
19 |
|
20 |
|
21 |
model = ResNet18(20, None)
|
22 |
+
model = model.load_from_checkpoint("resnet18.ckpt", map_location=torch.device("cpu"))
|
23 |
model.eval()
|
24 |
|
25 |
dataloader_args = dict(shuffle=True, batch_size=64)
|