-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Colab notebook throwing error while running inference.py #48
Comments
+1 |
1 similar comment
+1 |
有解决方案吗? |
path:./third_paet/face3d/extract_kp_videos.py |
我把anaconda创建的环境删除重新创建,然后依次装torch,requirements.txt, 然后把numpy的版本换成1.23.1就可以了。我也很纳闷
陪我灬去流浪
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年6月8日(星期四) 下午3:46
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [OpenTalker/video-retalking] Colab notebook throwing error while running inference.py (Issue #48)
有解决方案吗?
path:./third_paet/face3d/extract_kp_videos.py
第16行将face_alignment.LandmarksType._2D改为face_alignment.LandmarksType.TWO_D试试
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我将 我将他改为TWO_D后又出现新的错误,我打算也重新配置下环境。可以给一份你anaconda环境中的requirements.txt吗? |
+1 |
解决了吗? |
basicsr==1.4.2 |
好的,谢谢!我再去试试。我尝试过anaconda重新安装环境,也试过降低numpy版本一致不行。 |
Same issue, that something wrong with new version of some package, bc initial one worked fine. |
I started locally and tried to reinstall the environment. Finally, running the project with colad is the same problem. Do you have a solution on your end? |
Ok, my China friends. The problem been bc AdrianBulat change a model in facealignment so we need to change code in a proj ect. The solution is to change a line 16 to |
This was helpful, thank you |
` 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 104M/104M [02:59<00:00, 611kB/s] 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 81.4M/81.4M [01:29<00:00, 952kB/s] nvrtc compilation failed: #define NAN __int_as_float(0x7fffffff) template template extern "C" global landmark Det:: 1%|▉ | 1/135 [00:05<11:55, 5.34s/it] |
No, I dont. That looks lile u have a problem with driver or cuda instalation. Try to update cuda vs cudnn. Whats your video card? Also I have installed torch through "conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch". Now its actually another issue for you than topic starter. |
My graphics card is NVIDIA Geforce RTX 4090 and the CUDA version is 12.1. Because torch was slow to download in China, conda downloads often failed. So I used the pip image to download. My current torch version is 1.9.1+cu111 and torchvision version is 0.10.1+cu111 |
U need at least CUDA 11.7 torch version. That current that u installed dosent support your awesome card/ |
Thank you very much! I'll try again. I think the high version of cuda is compatible with the low version of pytorch. Just beginning to contact this knowledge! Thank you very much for your explanation! |
Thanks, according to your hint. My project also ran successfully!! This is so cool!! |
Hi guys, this is casued by the update of I changed the version of face-alignment from 1.3.5 to 1.3.4 in the requirements.txt. |
`AttributeError: _2D`. Based on an online GitHub thread that I found, there was a model change in the face-alignment package that causes this. This commit resolves this issue. This bug fix was tested on the default face-alignment pip package version face-alignment==1.3.5. The link to the GitHub thread is below: OpenTalker/video-retalking#48 (comment)
it fixes my problem. You are my hero buddy |
much appreciate!! this is the solution. thank you . |
Traceback (most recent call last):
File "/content/video-retalking/inference.py", line 342, in
main()
File "/content/video-retalking/inference.py", line 78, in main
kp_extractor = KeypointExtractor()
File "/content/video-retalking/third_part/face3d/extract_kp_videos.py", line 16, in init
self.detector = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D)
File "/usr/lib/python3.10/enum.py", line 437, in getattr
raise AttributeError(name) from None
AttributeError: _2D
The text was updated successfully, but these errors were encountered: