Datasets:

ArXiv:
diffusers-benchmarking-bot commited on
Commit
b119957
·
verified ·
1 Parent(s): 896f790

Upload folder using huggingface_hub

Browse files
main/adaptive_mask_inpainting.py CHANGED
@@ -372,7 +372,7 @@ class AdaptiveMaskInpaintPipeline(
372
  self.register_adaptive_mask_model()
373
  self.register_adaptive_mask_settings()
374
 
375
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
376
  deprecation_message = (
377
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
378
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -386,7 +386,7 @@ class AdaptiveMaskInpaintPipeline(
386
  new_config["steps_offset"] = 1
387
  scheduler._internal_dict = FrozenDict(new_config)
388
 
389
- if hasattr(scheduler.config, "skip_prk_steps") and scheduler.config.skip_prk_steps is False:
390
  deprecation_message = (
391
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
392
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
 
372
  self.register_adaptive_mask_model()
373
  self.register_adaptive_mask_settings()
374
 
375
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
376
  deprecation_message = (
377
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
378
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
386
  new_config["steps_offset"] = 1
387
  scheduler._internal_dict = FrozenDict(new_config)
388
 
389
+ if scheduler is not None and getattr(scheduler.config, "skip_prk_steps", True) is False:
390
  deprecation_message = (
391
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
392
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
main/composable_stable_diffusion.py CHANGED
@@ -89,7 +89,7 @@ class ComposableStableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin)
89
  ):
90
  super().__init__()
91
 
92
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
93
  deprecation_message = (
94
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
95
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -103,7 +103,7 @@ class ComposableStableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin)
103
  new_config["steps_offset"] = 1
104
  scheduler._internal_dict = FrozenDict(new_config)
105
 
106
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
107
  deprecation_message = (
108
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
109
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
89
  ):
90
  super().__init__()
91
 
92
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
93
  deprecation_message = (
94
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
95
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
103
  new_config["steps_offset"] = 1
104
  scheduler._internal_dict = FrozenDict(new_config)
105
 
106
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
107
  deprecation_message = (
108
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
109
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/img2img_inpainting.py CHANGED
@@ -95,7 +95,7 @@ class ImageToImageInpaintingPipeline(DiffusionPipeline):
95
  ):
96
  super().__init__()
97
 
98
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
99
  deprecation_message = (
100
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
101
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
95
  ):
96
  super().__init__()
97
 
98
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
99
  deprecation_message = (
100
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
101
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
main/instaflow_one_step.py CHANGED
@@ -109,7 +109,7 @@ class InstaFlowPipeline(
109
  ):
110
  super().__init__()
111
 
112
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
113
  deprecation_message = (
114
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
115
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -123,7 +123,7 @@ class InstaFlowPipeline(
123
  new_config["steps_offset"] = 1
124
  scheduler._internal_dict = FrozenDict(new_config)
125
 
126
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
127
  deprecation_message = (
128
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
129
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
109
  ):
110
  super().__init__()
111
 
112
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
113
  deprecation_message = (
114
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
115
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
123
  new_config["steps_offset"] = 1
124
  scheduler._internal_dict = FrozenDict(new_config)
125
 
126
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
127
  deprecation_message = (
128
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
129
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/interpolate_stable_diffusion.py CHANGED
@@ -86,7 +86,7 @@ class StableDiffusionWalkPipeline(DiffusionPipeline, StableDiffusionMixin):
86
  ):
87
  super().__init__()
88
 
89
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
90
  deprecation_message = (
91
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
92
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
86
  ):
87
  super().__init__()
88
 
89
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
90
  deprecation_message = (
91
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
92
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
main/ip_adapter_face_id.py CHANGED
@@ -191,7 +191,7 @@ class IPAdapterFaceIDStableDiffusionPipeline(
191
  ):
192
  super().__init__()
193
 
194
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
195
  deprecation_message = (
196
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
197
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -205,7 +205,7 @@ class IPAdapterFaceIDStableDiffusionPipeline(
205
  new_config["steps_offset"] = 1
206
  scheduler._internal_dict = FrozenDict(new_config)
207
 
208
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
209
  deprecation_message = (
210
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
211
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
191
  ):
192
  super().__init__()
193
 
194
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
195
  deprecation_message = (
196
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
197
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
205
  new_config["steps_offset"] = 1
206
  scheduler._internal_dict = FrozenDict(new_config)
207
 
208
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
209
  deprecation_message = (
210
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
211
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/llm_grounded_diffusion.py CHANGED
@@ -336,7 +336,7 @@ class LLMGroundedDiffusionPipeline(
336
  # This is copied from StableDiffusionPipeline, with hook initizations for LMD+.
337
  super().__init__()
338
 
339
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
340
  deprecation_message = (
341
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
342
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -350,7 +350,7 @@ class LLMGroundedDiffusionPipeline(
350
  new_config["steps_offset"] = 1
351
  scheduler._internal_dict = FrozenDict(new_config)
352
 
353
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
354
  deprecation_message = (
355
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
356
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
336
  # This is copied from StableDiffusionPipeline, with hook initizations for LMD+.
337
  super().__init__()
338
 
339
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
340
  deprecation_message = (
341
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
342
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
350
  new_config["steps_offset"] = 1
351
  scheduler._internal_dict = FrozenDict(new_config)
352
 
353
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
354
  deprecation_message = (
355
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
356
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/lpw_stable_diffusion.py CHANGED
@@ -496,7 +496,7 @@ class StableDiffusionLongPromptWeightingPipeline(
496
  ):
497
  super().__init__()
498
 
499
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
500
  deprecation_message = (
501
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
502
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -510,7 +510,7 @@ class StableDiffusionLongPromptWeightingPipeline(
510
  new_config["steps_offset"] = 1
511
  scheduler._internal_dict = FrozenDict(new_config)
512
 
513
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
514
  deprecation_message = (
515
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
516
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
496
  ):
497
  super().__init__()
498
 
499
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
500
  deprecation_message = (
501
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
502
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
510
  new_config["steps_offset"] = 1
511
  scheduler._internal_dict = FrozenDict(new_config)
512
 
513
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
514
  deprecation_message = (
515
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
516
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/matryoshka.py CHANGED
@@ -3766,7 +3766,7 @@ class MatryoshkaPipeline(
3766
  else:
3767
  raise ValueError("Currently, nesting levels 0, 1, and 2 are supported.")
3768
 
3769
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
3770
  deprecation_message = (
3771
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
3772
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -3780,7 +3780,7 @@ class MatryoshkaPipeline(
3780
  new_config["steps_offset"] = 1
3781
  scheduler._internal_dict = FrozenDict(new_config)
3782
 
3783
- # if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
3784
  # deprecation_message = (
3785
  # f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
3786
  # " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
3766
  else:
3767
  raise ValueError("Currently, nesting levels 0, 1, and 2 are supported.")
3768
 
3769
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
3770
  deprecation_message = (
3771
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
3772
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
3780
  new_config["steps_offset"] = 1
3781
  scheduler._internal_dict = FrozenDict(new_config)
3782
 
3783
+ # if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
3784
  # deprecation_message = (
3785
  # f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
3786
  # " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/multilingual_stable_diffusion.py CHANGED
@@ -98,7 +98,7 @@ class MultilingualStableDiffusion(DiffusionPipeline, StableDiffusionMixin):
98
  ):
99
  super().__init__()
100
 
101
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
102
  deprecation_message = (
103
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
104
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
98
  ):
99
  super().__init__()
100
 
101
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
102
  deprecation_message = (
103
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
104
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
main/pipeline_prompt2prompt.py CHANGED
@@ -131,7 +131,7 @@ class Prompt2PromptPipeline(
131
  ):
132
  super().__init__()
133
 
134
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
135
  deprecation_message = (
136
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
137
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -145,7 +145,7 @@ class Prompt2PromptPipeline(
145
  new_config["steps_offset"] = 1
146
  scheduler._internal_dict = FrozenDict(new_config)
147
 
148
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
149
  deprecation_message = (
150
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
151
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
131
  ):
132
  super().__init__()
133
 
134
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
135
  deprecation_message = (
136
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
137
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
145
  new_config["steps_offset"] = 1
146
  scheduler._internal_dict = FrozenDict(new_config)
147
 
148
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
149
  deprecation_message = (
150
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
151
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/pipeline_stable_diffusion_boxdiff.py CHANGED
@@ -417,7 +417,7 @@ class StableDiffusionBoxDiffPipeline(
417
  ):
418
  super().__init__()
419
 
420
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
421
  deprecation_message = (
422
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
423
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -431,7 +431,7 @@ class StableDiffusionBoxDiffPipeline(
431
  new_config["steps_offset"] = 1
432
  scheduler._internal_dict = FrozenDict(new_config)
433
 
434
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
435
  deprecation_message = (
436
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
437
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
417
  ):
418
  super().__init__()
419
 
420
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
421
  deprecation_message = (
422
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
423
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
431
  new_config["steps_offset"] = 1
432
  scheduler._internal_dict = FrozenDict(new_config)
433
 
434
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
435
  deprecation_message = (
436
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
437
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/pipeline_stable_diffusion_pag.py CHANGED
@@ -384,7 +384,7 @@ class StableDiffusionPAGPipeline(
384
  ):
385
  super().__init__()
386
 
387
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
388
  deprecation_message = (
389
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
390
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -398,7 +398,7 @@ class StableDiffusionPAGPipeline(
398
  new_config["steps_offset"] = 1
399
  scheduler._internal_dict = FrozenDict(new_config)
400
 
401
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
402
  deprecation_message = (
403
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
404
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
384
  ):
385
  super().__init__()
386
 
387
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
388
  deprecation_message = (
389
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
390
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
398
  new_config["steps_offset"] = 1
399
  scheduler._internal_dict = FrozenDict(new_config)
400
 
401
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
402
  deprecation_message = (
403
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
404
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/pipeline_zero1to3.py CHANGED
@@ -108,7 +108,7 @@ class Zero1to3StableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin):
108
  ):
109
  super().__init__()
110
 
111
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
112
  deprecation_message = (
113
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
114
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -122,7 +122,7 @@ class Zero1to3StableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin):
122
  new_config["steps_offset"] = 1
123
  scheduler._internal_dict = FrozenDict(new_config)
124
 
125
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
126
  deprecation_message = (
127
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
128
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
108
  ):
109
  super().__init__()
110
 
111
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
112
  deprecation_message = (
113
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
114
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
122
  new_config["steps_offset"] = 1
123
  scheduler._internal_dict = FrozenDict(new_config)
124
 
125
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
126
  deprecation_message = (
127
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
128
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/stable_diffusion_ipex.py CHANGED
@@ -105,7 +105,7 @@ class StableDiffusionIPEXPipeline(
105
  ):
106
  super().__init__()
107
 
108
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
109
  deprecation_message = (
110
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
111
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -119,7 +119,7 @@ class StableDiffusionIPEXPipeline(
119
  new_config["steps_offset"] = 1
120
  scheduler._internal_dict = FrozenDict(new_config)
121
 
122
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
123
  deprecation_message = (
124
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
125
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
105
  ):
106
  super().__init__()
107
 
108
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
109
  deprecation_message = (
110
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
111
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
119
  new_config["steps_offset"] = 1
120
  scheduler._internal_dict = FrozenDict(new_config)
121
 
122
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
123
  deprecation_message = (
124
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
125
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/stable_diffusion_mega.py CHANGED
@@ -66,7 +66,7 @@ class StableDiffusionMegaPipeline(DiffusionPipeline, StableDiffusionMixin):
66
  requires_safety_checker: bool = True,
67
  ):
68
  super().__init__()
69
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
70
  deprecation_message = (
71
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
72
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
66
  requires_safety_checker: bool = True,
67
  ):
68
  super().__init__()
69
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
70
  deprecation_message = (
71
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
72
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
main/stable_diffusion_reference.py CHANGED
@@ -132,7 +132,7 @@ class StableDiffusionReferencePipeline(
132
  ):
133
  super().__init__()
134
 
135
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
136
  deprecation_message = (
137
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
138
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -146,7 +146,7 @@ class StableDiffusionReferencePipeline(
146
  new_config["steps_offset"] = 1
147
  scheduler._internal_dict = FrozenDict(new_config)
148
 
149
- if hasattr(scheduler.config, "skip_prk_steps") and scheduler.config.skip_prk_steps is False:
150
  deprecation_message = (
151
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
152
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
 
132
  ):
133
  super().__init__()
134
 
135
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
136
  deprecation_message = (
137
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
138
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
146
  new_config["steps_offset"] = 1
147
  scheduler._internal_dict = FrozenDict(new_config)
148
 
149
+ if scheduler is not None and getattr(scheduler.config, "skip_prk_steps", True) is False:
150
  deprecation_message = (
151
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
152
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
main/stable_diffusion_repaint.py CHANGED
@@ -187,7 +187,7 @@ class StableDiffusionRepaintPipeline(
187
  ):
188
  super().__init__()
189
 
190
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
191
  deprecation_message = (
192
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
193
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -201,7 +201,7 @@ class StableDiffusionRepaintPipeline(
201
  new_config["steps_offset"] = 1
202
  scheduler._internal_dict = FrozenDict(new_config)
203
 
204
- if hasattr(scheduler.config, "skip_prk_steps") and scheduler.config.skip_prk_steps is False:
205
  deprecation_message = (
206
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
207
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
 
187
  ):
188
  super().__init__()
189
 
190
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
191
  deprecation_message = (
192
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
193
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
201
  new_config["steps_offset"] = 1
202
  scheduler._internal_dict = FrozenDict(new_config)
203
 
204
+ if scheduler is not None and getattr(scheduler.config, "skip_prk_steps", True) is False:
205
  deprecation_message = (
206
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
207
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
main/stable_diffusion_tensorrt_img2img.py CHANGED
@@ -710,7 +710,7 @@ class TensorRTStableDiffusionImg2ImgPipeline(DiffusionPipeline):
710
  ):
711
  super().__init__()
712
 
713
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
714
  deprecation_message = (
715
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
716
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -724,7 +724,7 @@ class TensorRTStableDiffusionImg2ImgPipeline(DiffusionPipeline):
724
  new_config["steps_offset"] = 1
725
  scheduler._internal_dict = FrozenDict(new_config)
726
 
727
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
728
  deprecation_message = (
729
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
730
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
710
  ):
711
  super().__init__()
712
 
713
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
714
  deprecation_message = (
715
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
716
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
724
  new_config["steps_offset"] = 1
725
  scheduler._internal_dict = FrozenDict(new_config)
726
 
727
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
728
  deprecation_message = (
729
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
730
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/stable_diffusion_tensorrt_inpaint.py CHANGED
@@ -714,7 +714,7 @@ class TensorRTStableDiffusionInpaintPipeline(DiffusionPipeline):
714
  ):
715
  super().__init__()
716
 
717
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
718
  deprecation_message = (
719
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
720
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -728,7 +728,7 @@ class TensorRTStableDiffusionInpaintPipeline(DiffusionPipeline):
728
  new_config["steps_offset"] = 1
729
  scheduler._internal_dict = FrozenDict(new_config)
730
 
731
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
732
  deprecation_message = (
733
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
734
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
714
  ):
715
  super().__init__()
716
 
717
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
718
  deprecation_message = (
719
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
720
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
728
  new_config["steps_offset"] = 1
729
  scheduler._internal_dict = FrozenDict(new_config)
730
 
731
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
732
  deprecation_message = (
733
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
734
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/stable_diffusion_tensorrt_txt2img.py CHANGED
@@ -626,7 +626,7 @@ class TensorRTStableDiffusionPipeline(DiffusionPipeline):
626
  ):
627
  super().__init__()
628
 
629
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
630
  deprecation_message = (
631
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
632
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -640,7 +640,7 @@ class TensorRTStableDiffusionPipeline(DiffusionPipeline):
640
  new_config["steps_offset"] = 1
641
  scheduler._internal_dict = FrozenDict(new_config)
642
 
643
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
644
  deprecation_message = (
645
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
646
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
 
626
  ):
627
  super().__init__()
628
 
629
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
630
  deprecation_message = (
631
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
632
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
640
  new_config["steps_offset"] = 1
641
  scheduler._internal_dict = FrozenDict(new_config)
642
 
643
+ if scheduler is not None and getattr(scheduler.config, "clip_sample", False) is True:
644
  deprecation_message = (
645
  f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
646
  " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
main/text_inpainting.py CHANGED
@@ -71,7 +71,7 @@ class TextInpainting(DiffusionPipeline, StableDiffusionMixin):
71
  ):
72
  super().__init__()
73
 
74
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
75
  deprecation_message = (
76
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
77
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
@@ -85,7 +85,7 @@ class TextInpainting(DiffusionPipeline, StableDiffusionMixin):
85
  new_config["steps_offset"] = 1
86
  scheduler._internal_dict = FrozenDict(new_config)
87
 
88
- if hasattr(scheduler.config, "skip_prk_steps") and scheduler.config.skip_prk_steps is False:
89
  deprecation_message = (
90
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
91
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
 
71
  ):
72
  super().__init__()
73
 
74
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
75
  deprecation_message = (
76
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
77
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
85
  new_config["steps_offset"] = 1
86
  scheduler._internal_dict = FrozenDict(new_config)
87
 
88
+ if scheduler is not None and getattr(scheduler.config, "skip_prk_steps", True) is False:
89
  deprecation_message = (
90
  f"The configuration file of this scheduler: {scheduler} has not set the configuration"
91
  " `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
main/wildcard_stable_diffusion.py CHANGED
@@ -120,7 +120,7 @@ class WildcardStableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin):
120
  ):
121
  super().__init__()
122
 
123
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
124
  deprecation_message = (
125
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
126
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
 
120
  ):
121
  super().__init__()
122
 
123
+ if scheduler is not None and getattr(scheduler.config, "steps_offset", 1) != 1:
124
  deprecation_message = (
125
  f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
126
  f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "