File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -836,7 +836,10 @@ def test_stable_diffusion_lms(self):
836836
837837 def test_stable_diffusion_dpm (self ):
838838 sd_pipe = StableDiffusionPipeline .from_pretrained ("CompVis/stable-diffusion-v1-4" , safety_checker = None )
839- sd_pipe .scheduler = DPMSolverMultistepScheduler .from_config (sd_pipe .scheduler .config )
839+ sd_pipe .scheduler = DPMSolverMultistepScheduler .from_config (
840+ sd_pipe .scheduler .config ,
841+ final_sigmas_type = "sigma_min" ,
842+ )
840843 sd_pipe = sd_pipe .to (torch_device )
841844 sd_pipe .set_progress_bar_config (disable = None )
842845
Original file line number Diff line number Diff line change @@ -627,7 +627,9 @@ def test_stable_diffusion_euler(self):
627627
628628 def test_stable_diffusion_dpm (self ):
629629 sd_pipe = StableDiffusionPipeline .from_pretrained ("stabilityai/stable-diffusion-2-1-base" ).to (torch_device )
630- sd_pipe .scheduler = DPMSolverMultistepScheduler .from_config (sd_pipe .scheduler .config )
630+ sd_pipe .scheduler = DPMSolverMultistepScheduler .from_config (
631+ sd_pipe .scheduler .config , final_sigmas_type = "sigma_min"
632+ )
631633 sd_pipe .set_progress_bar_config (disable = None )
632634
633635 inputs = self .get_inputs (torch_device )
Original file line number Diff line number Diff line change @@ -323,7 +323,9 @@ def test_stable_diffusion_v_pred_dpm(self):
323323 TODO: update this test after making DPM compatible with V-prediction!
324324 """
325325 scheduler = DPMSolverMultistepScheduler .from_pretrained (
326- "stabilityai/stable-diffusion-2" , subfolder = "scheduler"
326+ "stabilityai/stable-diffusion-2" ,
327+ subfolder = "scheduler" ,
328+ final_sigmas_type = "sigma_min" ,
327329 )
328330 sd_pipe = StableDiffusionPipeline .from_pretrained ("stabilityai/stable-diffusion-2" , scheduler = scheduler )
329331 sd_pipe = sd_pipe .to (torch_device )
You can’t perform that action at this time.
0 commit comments