All-In-One-Deflicker icon indicating copy to clipboard operation
All-In-One-Deflicker copied to clipboard

AssertionError: the number of style frames is different from the number of content frames

Open mycomedico opened this issue 1 year ago • 2 comments

I set this up and ran on google colab. The example script executed perfectly, however when I tried it on my own longer video there was the following error:

Namespace(ckpt_filter='./pretrained_weights/neural_filter.pth', ckpt_local='./pretrained_weights/local_refinement_net.pth', fps=10, video_name='neathaz_color001', gpu=0) Load ./pretrained_weights/local_refinement_net.pth Traceback (most recent call last): File "/content/All-in-one-Deflicker/src/neural_filter_and_refinement.py", line 73, in <module> assert len(style_names) == len(content_names), "the number of style frames is different from the number of content frames" AssertionError: the number of style frames is different from the number of content frames

mycomedico avatar Mar 20 '24 19:03 mycomedico

Simple disable the if in code

gvonkreisler avatar May 04 '24 21:05 gvonkreisler

Simple disable the if in code

I met the same problem. Do you mean comment the assert line out?

Jimmy-x avatar Dec 25 '24 05:12 Jimmy-x