linoyts HF staff commited on
Commit
f3f25c0
Β·
verified Β·
1 Parent(s): 437dac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def sample(zs, wts, prompt_tar="", skip=36, cfg_scale_tar=15, eta = 1):
54
  return img
55
 
56
  # load pipelines
57
- sd_model_id = "stabilityai/stable-diffusion-2"
58
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
59
  sd_pipe = StableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
60
  sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
 
54
  return img
55
 
56
  # load pipelines
57
+ sd_model_id = "CompVis/stable-diffusion-v1-4"
58
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
59
  sd_pipe = StableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
60
  sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")