Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ sdxl_pipe.to(device)
|
|
37 |
sdxl_flash_pipe = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", torch_dtype=torch.float16)
|
38 |
sdxl_flash_pipe.to(device)
|
39 |
|
40 |
-
# Ensure sampler uses "trailing" timesteps.
|
41 |
-
sdxl_flash_pipe.scheduler = DPMSolverSinglestepScheduler.from_config(
|
42 |
|
43 |
# Define the image generation function for the Arena tab
|
44 |
@spaces.GPU(duration=80)
|
|
|
37 |
sdxl_flash_pipe = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", torch_dtype=torch.float16)
|
38 |
sdxl_flash_pipe.to(device)
|
39 |
|
40 |
+
# Ensure sampler uses "trailing" timesteps for sdxl flash.
|
41 |
+
sdxl_flash_pipe.scheduler = DPMSolverSinglestepScheduler.from_config(sdxl_flash_pipe.scheduler.config, timestep_spacing="trailing")
|
42 |
|
43 |
# Define the image generation function for the Arena tab
|
44 |
@spaces.GPU(duration=80)
|