Skip to content
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

UnboundLocalError: local variable 'keypoints' referenced before assignment #222

Open
hiowenluke opened this issue Mar 12, 2024 · 3 comments

Comments

@hiowenluke
Copy link

Traceback (most recent call last):
  File "inference.py", line 345, in <module>
    main()
  File "inference.py", line 82, in main
    lm = kp_extractor.extract_keypoint(frames_pil, './temp/'+base_name+'_landmarks.txt')
  File "D:\video-retalking\third_part\face3d\extract_kp_videos.py", line 29, in extract_keypoint
    current_kp = self.extract_keypoint(image)
  File "D:\video-retalking\third_part\face3d\extract_kp_videos.py", line 57, in extract_keypoint
    return keypoints
UnboundLocalError: local variable 'keypoints' referenced before assignment

OS: Windows 10

@MehmetSaitAlpaydin
Copy link

I am having the same issue.

@vettorazi
Copy link

same here

@zergzzlun
Copy link

zergzzlun commented Apr 11, 2024

If you check the error info again there's a good chance you'll find more error information above. The error message you posted is most likely caused by Line 41 of the same file.
I'm guessing it's caused by CUDA version conflict in PyTorch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants