Spaces:
Runtime error
Runtime error
lmoss
commited on
Commit
·
b39fc9a
1
Parent(s):
806f947
fixing mapping of checkpoint
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ st.text(resp.status_code)
|
|
20 |
pv.set_plot_theme("document")
|
21 |
pl = pv.Plotter(shape=(1, 1),
|
22 |
window_size=(800, 800))
|
23 |
-
|
24 |
netG = DCGAN3D_G(64, 512, 1, 32, 1)
|
25 |
-
netG.load_state_dict(torch.load("berea_generator_epoch_24.pth"))
|
26 |
-
z = torch.randn(1, 512,
|
27 |
with torch.no_grad():
|
28 |
X = netG(z)
|
29 |
|
|
|
20 |
pv.set_plot_theme("document")
|
21 |
pl = pv.Plotter(shape=(1, 1),
|
22 |
window_size=(800, 800))
|
23 |
+
|
24 |
netG = DCGAN3D_G(64, 512, 1, 32, 1)
|
25 |
+
netG.load_state_dict(torch.load("berea_generator_epoch_24.pth", map_location=torch.device('cpu')))
|
26 |
+
z = torch.randn(1, 512, 3, 3, 3)
|
27 |
with torch.no_grad():
|
28 |
X = netG(z)
|
29 |
|