Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -94,8 +94,7 @@ def sample_then_run(network, unet):
|
|
94 |
cfg = 3.0
|
95 |
steps = 25
|
96 |
image = inference( network, unet, prompt, negative_prompt, cfg, steps, seed)
|
97 |
-
torch.save(network.proj.detach(), "model.pt" )
|
98 |
-
#return
|
99 |
return image, "model.pt", unet, network
|
100 |
|
101 |
|
|
|
94 |
cfg = 3.0
|
95 |
steps = 25
|
96 |
image = inference( network, unet, prompt, negative_prompt, cfg, steps, seed)
|
97 |
+
torch.save(network.proj.cpu().detach(), "model.pt" )
|
|
|
98 |
return image, "model.pt", unet, network
|
99 |
|
100 |
|