Spaces:
Sleeping
Sleeping
Commit
·
61e2a55
1
Parent(s):
ac35722
Updated model
Browse files- app.py +1 -1
- model.ckpt → model.pth +2 -2
app.py
CHANGED
@@ -9,7 +9,7 @@ from resnet import ResNet18
|
|
9 |
import gradio as gr
|
10 |
|
11 |
model = ResNet18()
|
12 |
-
model.load_state_dict(torch.load("model.
|
13 |
|
14 |
inv_normalize = transforms.Normalize(
|
15 |
mean=[-0.50/0.23, -0.50/0.23, -0.50/0.23],
|
|
|
9 |
import gradio as gr
|
10 |
|
11 |
model = ResNet18()
|
12 |
+
model.load_state_dict(torch.load("model.pth", map_location=torch.device('cpu')), strict=False)
|
13 |
|
14 |
inv_normalize = transforms.Normalize(
|
15 |
mean=[-0.50/0.23, -0.50/0.23, -0.50/0.23],
|
model.ckpt → model.pth
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a7e95c31e09067216da79d276b0496bca3db976f4ec44fdae4a0b9db4b38fed
|
3 |
+
size 44766018
|