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

Error due to missing models #2

Open
NabiKAZ opened this issue Jan 4, 2025 · 1 comment
Open

Error due to missing models #2

NabiKAZ opened this issue Jan 4, 2025 · 1 comment

Comments

@NabiKAZ
Copy link

NabiKAZ commented Jan 4, 2025

Error:

>python main.py
Traceback (most recent call last):
  File "C:\Nabi\Video-Face-Swap2\backend\main.py", line 3, in <module>
    from face_swap.api import router
  File "C:\Nabi\Video-Face-Swap2\backend\face_swap\api.py", line 14, in <module>
    from face_swap.face_swap import run_face_swap, get_images_from_group, crop_faces
  File "C:\Nabi\Video-Face-Swap2\backend\face_swap\face_swap.py", line 18, in <module>
    retinaface_det_model = RetinaFace(RETINAFACE_MODEL_PATH, providers=PROVIDERS)
  File "C:\Nabi\Video-Face-Swap2\backend\face_swap\retinaface.py", line 70, in __init__
    assert os.path.exists(self.model_file), "RetinaFace weights not found."
AssertionError: RetinaFace weights not found.

And I see (https://github.com/karanjakhar/Video-Face-Swap/blob/main/backend/face_swap/weights/readme.txt):

Download model weight files from release of the repo and place them here.

Does this project have a secret part?!

@bavanDA
Copy link

bavanDA commented Jan 8, 2025

Hi, have you checked this part ? : https://github.com/karanjakhar/Video-Face-Swap/releases/tag/model

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

2 participants