Skip to content

Commit 17957d0

Browse files
committed
update
1 parent 3587317 commit 17957d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/convert_cogvideox_to_diffusers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def convert_transformer(
175175

176176
def convert_vae(ckpt_path: str, scaling_factor: float, version: str, dtype: torch.dtype):
177177
init_kwargs = {"scaling_factor": scaling_factor}
178-
if args.version == "1.5":
178+
if version == "1.5":
179179
init_kwargs.update({"invert_scale_latents": True})
180180

181181
original_state_dict = get_state_dict(torch.load(ckpt_path, map_location="cpu", mmap=True))

0 commit comments

Comments
 (0)