Nick088 commited on
Commit
294f972
·
verified ·
1 Parent(s): 305c390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(pipe.scheduler.config, timestep_spacing="trailing")
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)