@@ -91,17 +91,18 @@ def __init__(
9191 new_config ["steps_offset" ] = 1
9292 scheduler ._internal_dict = FrozenDict (new_config )
9393
94- if hasattr (scheduler .config , "clip_sample " ) and scheduler .config .clip_sample is True :
94+ if hasattr (scheduler .config , "skip_prk_steps " ) and scheduler .config .skip_prk_steps is False :
9595 deprecation_message = (
96- f"The configuration file of this scheduler: { scheduler } has not set the configuration `clip_sample`."
97- " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
98- " config accordingly as not setting `clip_sample` in the config might lead to incorrect results in"
99- " future versions. If you have downloaded this checkpoint from the Hugging Face Hub, it would be very"
100- " nice if you could open a Pull request for the `scheduler/scheduler_config.json` file"
96+ f"The configuration file of this scheduler: { scheduler } has not set the configuration"
97+ " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
98+ " sure to update the config accordingly as not setting `skip_prk_steps` in the config might lead to"
99+ " incorrect results in future versions. If you have downloaded this checkpoint from the Hugging Face"
100+ " Hub, it would be very nice if you could open a Pull request for the"
101+ " `scheduler/scheduler_config.json` file"
101102 )
102- deprecate ("clip_sample not set" , "1.0.0" , deprecation_message , standard_warn = False )
103+ deprecate ("skip_prk_steps not set" , "1.0.0" , deprecation_message , standard_warn = False )
103104 new_config = dict (scheduler .config )
104- new_config ["clip_sample " ] = False
105+ new_config ["skip_prk_steps " ] = True
105106 scheduler ._internal_dict = FrozenDict (new_config )
106107
107108 if safety_checker is None :
0 commit comments