Linoy Tsaban commited on
Commit
f55706c
1 Parent(s): 5e25b83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def sample(wt, zs, wts, prompt_tar="", cfg_scale_tar=15, skip=36, eta = 1):
48
  sd_model_id = "runwayml/stable-diffusion-v1-5"
49
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
50
  sd_pipe = StableDiffusionPipeline.from_pretrained(model_id).to(device)
51
- sd_pipe.scheduler = DDIMScheduler.from_config(model_id, subfolder = "scheduler")
52
  sem_pipe = SemanticStableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
53
 
54
 
 
48
  sd_model_id = "runwayml/stable-diffusion-v1-5"
49
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
50
  sd_pipe = StableDiffusionPipeline.from_pretrained(model_id).to(device)
51
+ sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
52
  sem_pipe = SemanticStableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
53
 
54