Linoy Tsaban
commited on
Commit
•
d7187bf
1
Parent(s):
77f89c5
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +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 |
-
|
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")
|
|
|
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")
|