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

[FEATURE]: Comprehensive list of model URLs #1336

Closed
hacker1024 opened this issue Sep 4, 2024 · 4 comments · Fixed by #1358
Closed

[FEATURE]: Comprehensive list of model URLs #1336

hacker1024 opened this issue Sep 4, 2024 · 4 comments · Fixed by #1358
Labels
enhancement New feature or request

Comments

@hacker1024
Copy link

Description

We'd like to ship a prepackaged DEEPFACE_HOME in order to avoid unexpectedly downloading large files at runtime. At the moment, this is hard to do, because model downloads occur all throughout the codebase.

It'd be great if the model names, URLs, and file paths were kept in an easily parseable data structure that could be used by both DeepFace at runtime and packaging scripts beforehand.

Additional Info

No response

@hacker1024 hacker1024 added the enhancement New feature or request label Sep 4, 2024
@serengil
Copy link
Owner

serengil commented Sep 5, 2024

DEEPFACE_HOME can be updated with environment variables - https://github.com/serengil/deepface/blob/master/deepface/commons/folder_utils.py#L34

What do you need exactly? Would you please be more clearer? I couldn't understand the requirement.

@serengil serengil closed this as not planned Won't fix, can't repro, duplicate, stale Sep 8, 2024
@hacker1024
Copy link
Author

I'd like to download all the model files needed by DeepFace in advance, but there is no easy way to get a list of all the required files and URLs.

@serengil
Copy link
Owner

Sure, we can store them all into a dictionary.

@serengil
Copy link
Owner

serengil commented Oct 6, 2024

@hacker1024 now, you can download all model weights in one shot with the following code snippet.

from deepface.commons import weight_utils
weight_utils.download_all_models_in_one_shot()

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

Successfully merging a pull request may close this issue.

2 participants