admin管理员组文章数量:1289351
When you load a model from Deepface for the first time, it downloads the model weights .h5 file in the home_folder/.deepface folder and loads them for use from there.
I want to store and fetch these weights in my project folder so that my code can run on any device without having to redownload them on every machine.
How do i execute this and is there an even better way to achieve this?
I tried to download the weights manually to my project folder but that didn't work.
When you load a model from Deepface for the first time, it downloads the model weights .h5 file in the home_folder/.deepface folder and loads them for use from there.
I want to store and fetch these weights in my project folder so that my code can run on any device without having to redownload them on every machine.
How do i execute this and is there an even better way to achieve this?
I tried to download the weights manually to my project folder but that didn't work.
Share Improve this question asked Feb 21 at 9:53 Yashaswat VermaYashaswat Verma 32 bronze badges1 Answer
Reset to default 0If you set DEEPFACE_HOME
environment variable to the target folder, then deepface will use that folder for weights. If you don't have that env var, then it will use your home folder by default. Corresponding logic can be found here.
本文标签:
版权声明:本文标题:face recognition - How to change default location of Deepface model weights from home folder to project folder? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741393152a2376221.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论