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

AssertionError: model_file should exist #1912

Open
Abd-Alrahman-Alahmar opened this issue Feb 15, 2022 · 3 comments
Open

AssertionError: model_file should exist #1912

Abd-Alrahman-Alahmar opened this issue Feb 15, 2022 · 3 comments

Comments

@Abd-Alrahman-Alahmar
Copy link

i have downloaded antelope which is the pretrain model right?
i get this issue whenever trying to call the detection or recognition model in the quick example

Traceback (most recent call last):
File "D:/insightface/python-package/main.py", line 8, in
detector = insightface.model_zoo.get_model('glintr100.onnx')
File "D:\insightface\python-package\insightface\model_zoo\model_zoo.py", line 80, in get_model
assert osp.exists(model_file), 'model_file should exist'
AssertionError: model_file should exist

so am wondering what is the correct way of setting this model?

@Abd-Alrahman-Alahmar
Copy link
Author

main

am trying this code so after i try the detector with the path it just redownload the antelope which is already exist in my file and i don't see the different, as the code by default detect the faces so i commented and tried to call the recognition model with the same path but i get again same issue
assert osp.exists(model_file), 'model_file should exist'
AssertionError: model_file should exist

@Abd-Alrahman-Alahmar
Copy link
Author

any idea?

@EylonSho
Copy link

Try to use the full absolute path.
/home/user/.../glintr100.onnx instead of ~/.insightface/.../glintr100.onnx

SnoopyDevelops added a commit to SnoopyDevelops/insightface that referenced this issue Sep 12, 2022
Fix AssertionError ( model_file should exist ) deepinsight#1912
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