-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError #11
Comments
Hi, Could you tell me which code you used? |
the code on huggingface fix seedtorch.manual_seed(0) model_path = "/home/Video_XL" max_frames_num =1200 model.config.beacon_ratio=[8] # you can delete this line to realize random compression of {2,4,8} ratio #video input beacon_skip_first = (input_ids == IMAGE_TOKEN_INDEX).nonzero(as_tuple=True)[1].item() with torch.inference_mode(): if IMAGE_TOKEN_INDEX in input_ids: output_ids=output_ids[:,transform_input_ids.shape[1]:] |
I attempted to utilize the suggested prompt you provided, but unfortunately, I encountered the same error. |
You can zip your demo.py code and video to my email ([email protected]). I will try my best to solve it. |
already send to your email, Looking forward to your reply |
hi @shuyansy, @ZHANG-SH97 is there any update, as I am facing the same issue. |
Sorry to give a late reply. I found this is a bug with the Transformers version. You can use the transformers==4.40.0.dev0 to avoid this issue. |
I used the official weights and test codes to test the video, but encountered the following error. What is the cause?

Thanks for your reply!
The text was updated successfully, but these errors were encountered: