amildravid4292 commited on
Commit
0ea3a05
·
verified ·
1 Parent(s): 9145fad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):