Skip to content

Commit 8ba2923

Browse files
committed
Fix visualization images not being in float32, fix steps showing up as None when using S. Cus. node
1 parent ce99718 commit 8ba2923

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

animatediff/context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ def generate_context_visualization(context_opts: ContextOptionsGroup, model: Mod
616616

617617
if start_step is None:
618618
start_step = 0 # use this in case start_step is provided, to display accurate step
619+
if steps is None:
620+
steps = len(sigmas)
619621

620622
for i, t in enumerate(sigmas):
621623
# make context_opts reflect current step/sigma
@@ -674,5 +676,5 @@ def generate_context_visualization(context_opts: ContextOptionsGroup, model: Mod
674676
repeat_count += 1
675677

676678
images = torch.stack(all_imgs)
677-
images = images.movedim(1, -1)
679+
images = images.movedim(1, -1).to(torch.float32)
678680
return images

0 commit comments

Comments
 (0)