Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
cf5dab0
1
Parent(s):
f55706c
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def sample(wt, zs, wts, prompt_tar="", cfg_scale_tar=15, skip=36, eta = 1):
|
|
47 |
# load pipelines
|
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(
|
51 |
sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
|
52 |
sem_pipe = SemanticStableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
|
53 |
|
|
|
47 |
# load pipelines
|
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(sd_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 |
|