Skip to content

Commit 4174736

Browse files
Update pipeline_cogview4_control.py
1 parent 64637ef commit 4174736

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/cogview4/pipeline_cogview4_control.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def calculate_shift(
6868
return mu
6969

7070

71-
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.retrieve_timesteps
71+
# Copied from diffusers.pipelines.cogview4.pipeline_cogview4.retrieve_timesteps
7272
def retrieve_timesteps(
7373
scheduler,
7474
num_inference_steps: Optional[int] = None,
@@ -100,6 +100,7 @@ def retrieve_timesteps(
100100
`Tuple[torch.Tensor, int]`: A tuple where the first element is the timestep schedule from the scheduler and the
101101
second element is the number of inference steps.
102102
"""
103+
# Copied from diffusers.pipelines.cogview4.pipeline_cogview4.retrieve_timesteps
103104
accepts_timesteps = "timesteps" in set(inspect.signature(scheduler.set_timesteps).parameters.keys())
104105
accepts_sigmas = "sigmas" in set(inspect.signature(scheduler.set_timesteps).parameters.keys())
105106

0 commit comments

Comments
 (0)