-
Notifications
You must be signed in to change notification settings - Fork 322
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
inference.py: error: unrecognized arguments: #62
Comments
I am getting the same issue on WSL. /mnt/d/Projects/AI/VideoCrafter$ sh scripts/run_text2video.sh --ckpt_path checkpoints\base_512_v2\model.ckpt |
I potentially found some temporary fixes for this. open the file scripts\evaluation\Inference.py in a text editor Change: But now I am getting a new error: Traceback (most recent call last): Edit: I solved the new issue, the main .sh file is failing to set the settings for the program. open scripts\evaluation\Inference.py in a text editor again, and replace all the parser.add_argument functions with:
Once again I have gotten a new error, but this could just be because I am using WSL: DDIM scale True Edit: That fixed that issue, but now I am getting torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 8.00 GiB total capacity; 7.10 GiB already allocated; 0 bytes free; 7.26 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. (Maybe your gpu can handle it and you didnt get this issue, but I have two gpus and want to split the load between them) Edit: I didn't find a permanent solution, however, if you have multiple GPU's like me, I recommend going into device manager and disabling your weaker GPU's so it defaults to your more powerful GPU. That seemed to fully fix the issue for me. You can also try to reduce some of the settings you pasted into scripts\evaluation\Inference.py to reduce the usage of your gpu. I hope this helps you figure it out! |
请问,为什么在运行 sh scripts/run_image2video.sh之后,提示找不到这么多的参数呢?模型我已经下载了,放在了文档要求的 checkpoint文件夹。
The text was updated successfully, but these errors were encountered: