Linoy Tsaban commited on
Commit
f634660
1 Parent(s): 539fd6d

Update app.py

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