Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -305,9 +305,9 @@ def sample_then_run():
|
|
305 |
image = inference( prompt, negative_prompt, cfg, steps, seed)
|
306 |
torch.save(network.value.proj.detach(), "model.pt" )
|
307 |
# net = torch.load("model.pt").cpu()
|
|
|
308 |
|
309 |
-
|
310 |
-
return image, "model.pt", network.value.cpu().detach() #net #, network.value.cpu()
|
311 |
|
312 |
|
313 |
class CustomImageDataset(Dataset):
|
|
|
305 |
image = inference( prompt, negative_prompt, cfg, steps, seed)
|
306 |
torch.save(network.value.proj.detach(), "model.pt" )
|
307 |
# net = torch.load("model.pt").cpu()
|
308 |
+
network.value.proj.detach().cpu()
|
309 |
|
310 |
+
return image, "model.pt", network.value #net #, network.value.cpu()
|
|
|
311 |
|
312 |
|
313 |
class CustomImageDataset(Dataset):
|