mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-12-02 10:32:09 +08:00
Fix dynCFG timesteps
This commit is contained in:
parent
f47370a601
commit
4382836b97
@ -515,7 +515,10 @@ class VideoDDIMSampler(BaseDiffusionSampler):
|
||||
).to(torch.float32)
|
||||
if isinstance(self.guider, DynamicCFG):
|
||||
denoised = self.guider(
|
||||
denoised, (1 - alpha_cumprod_sqrt**2) ** 0.5, step_index=self.num_steps - timestep, scale=scale
|
||||
denoised,
|
||||
(1 - alpha_cumprod_sqrt**2) ** 0.5,
|
||||
step_index=self.discretization.num_steps - timestep,
|
||||
scale=scale,
|
||||
)
|
||||
else:
|
||||
denoised = self.guider(denoised, (1 - alpha_cumprod_sqrt**2) ** 0.5, scale=scale)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user