File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/diffusers/pipelines/cogview4 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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
7272def 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
You can’t perform that action at this time.
0 commit comments