Spaces:
Running
on
Zero
Running
on
Zero
Anonymous
commited on
Commit
·
cf7c21e
1
Parent(s):
fb2d9f3
load in advance
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model_ckpt = "stabilityai/stable-diffusion-xl-base-1.0"
|
|
15 |
model_ckpt_turbo = "stabilityai/sdxl-turbo"
|
16 |
pipe = StableDiffusionXLPipeline.from_pretrained(model_ckpt, torch_dtype=dtype).to(device)
|
17 |
pipe_turbo = StableDiffusionXLPipeline_Turbo.from_pretrained(model_ckpt_turbo, torch_dtype=dtype).to(device)
|
18 |
-
generator = torch.Generator(device=
|
19 |
torch.cuda.empty_cache()
|
20 |
|
21 |
@spaces.GPU(duration=100)
|
|
|
15 |
model_ckpt_turbo = "stabilityai/sdxl-turbo"
|
16 |
pipe = StableDiffusionXLPipeline.from_pretrained(model_ckpt, torch_dtype=dtype).to(device)
|
17 |
pipe_turbo = StableDiffusionXLPipeline_Turbo.from_pretrained(model_ckpt_turbo, torch_dtype=dtype).to(device)
|
18 |
+
generator = torch.Generator(device=dtype)
|
19 |
torch.cuda.empty_cache()
|
20 |
|
21 |
@spaces.GPU(duration=100)
|