Spaces:
Runtime error
Runtime error
Commit
·
91fa11f
1
Parent(s):
61855d2
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def update(inp, file, mode):
|
|
| 63 |
print(voxels.shape)
|
| 64 |
model = Model()
|
| 65 |
model.to(device)
|
| 66 |
-
model.load_state_dict(torch.load("weights/metal_0.5A_v3_d0.2_16Abox.pth"))
|
| 67 |
model.eval()
|
| 68 |
with warnings.catch_warnings():
|
| 69 |
warnings.filterwarnings("ignore")
|
|
|
|
| 63 |
print(voxels.shape)
|
| 64 |
model = Model()
|
| 65 |
model.to(device)
|
| 66 |
+
model.load_state_dict(torch.load("weights/metal_0.5A_v3_d0.2_16Abox.pth", map_location=torch.device('cpu')))
|
| 67 |
model.eval()
|
| 68 |
with warnings.catch_warnings():
|
| 69 |
warnings.filterwarnings("ignore")
|