Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
asomoza committed Aug 29, 2024
1 parent 7f5ece9 commit adeb1cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/diffusers/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def callback_fn(self, pipeline, step_index, timestep, callback_kwargs) -> Dict[s

class SDXLCFGCutoffCallback(PipelineCallback):
"""
Callback function for the base Stable Diffusion XL Pipelines. After certain number of steps (set by `cutoff_step_ratio`
or `cutoff_step_index`), this callback will disable the CFG.
Callback function for the base Stable Diffusion XL Pipelines. After certain number of steps (set by
`cutoff_step_ratio` or `cutoff_step_index`), this callback will disable the CFG.
Note: This callback mutates the pipeline by changing the `_guidance_scale` attribute to 0.0 after the cutoff step.
"""
Expand Down Expand Up @@ -139,8 +139,8 @@ def callback_fn(self, pipeline, step_index, timestep, callback_kwargs) -> Dict[s

class SDXLControlnetCFGCutoffCallback(PipelineCallback):
"""
Callback function for the Controlnet Stable Diffusion XL Pipelines. After certain number of steps (set by `cutoff_step_ratio`
or `cutoff_step_index`), this callback will disable the CFG.
Callback function for the Controlnet Stable Diffusion XL Pipelines. After certain number of steps (set by
`cutoff_step_ratio` or `cutoff_step_index`), this callback will disable the CFG.
Note: This callback mutates the pipeline by changing the `_guidance_scale` attribute to 0.0 after the cutoff step.
"""
Expand Down

0 comments on commit adeb1cc

Please sign in to comment.