lmoss commited on
Commit
b39fc9a
·
1 Parent(s): 806f947

fixing mapping of checkpoint

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- print(torch.load("berea_generator_epoch_24.pth"))
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, 5, 5, 5)
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