Spaces:
Sleeping
Sleeping
Commit
•
7d9dd48
1
Parent(s):
0b6a462
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,8 @@ ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
|
30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
31 |
if torch.cuda.is_available():
|
32 |
#Lykon/dreamshaper-xl-1-0
|
33 |
-
pipe = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0',)# torch_dtype=torch.float16, variant="safetensors")
|
|
|
34 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True, algorithm_type="sde-dpmsolver++")
|
35 |
pipe = pipe.to(device)
|
36 |
|
|
|
30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
31 |
if torch.cuda.is_available():
|
32 |
#Lykon/dreamshaper-xl-1-0
|
33 |
+
# pipe = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0',)# torch_dtype=torch.float16, variant="safetensors")
|
34 |
+
pipe = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0',use_safetensors=True)
|
35 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True, algorithm_type="sde-dpmsolver++")
|
36 |
pipe = pipe.to(device)
|
37 |
|