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