avatarify-python icon indicating copy to clipboard operation
avatarify-python copied to clipboard

Downloading the face detection CNN. Please wait......

Open jackyxie511 opened this issue 4 years ago • 6 comments

Describe the bug when I use "bash run.sh",it has always been the following situation. How to do it?

bash run.sh Creating virtual camera /dev/video9 (sudo privelege required) [1608780572.440412] Loading Predictor /home/lab134/xq/xq0914-avatarify-master/avatarify/afy/predictor_local.py:34: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. config = yaml.load(f) Downloading the face detection CNN. Please wait...

jackyxie511 avatar Dec 24 '20 04:12 jackyxie511

Please wait...

I think waiting is what you should do. Does the program not download? Is there a problem where the program exits?

ochen1 avatar Dec 24 '20 17:12 ochen1

Did it finally download the CNN?

JohanAR avatar Jan 13 '21 09:01 JohanAR

Hello, Downloading is very long and, at least in my case, it re-download it everytime I run avatarify. How to make it download only the first time ? I use "bash run.sh --docker" to run it.

benoit-cty avatar May 20 '21 07:05 benoit-cty

Is the current directory writable? I don't remember exactly how it's supposed to work, and I can't test right now because it seems like I broke some dependencies when upgrading my OS

JohanAR avatar May 20 '21 13:05 JohanAR

Thanks for your answer ! I works for me but I think it's a problem with the Docker implementation : the container may be recreated at each run. Do you know the folder where the file is downloaded ? So we could use a docker volume or a mount folder to store them.

benoit-cty avatar May 21 '21 07:05 benoit-cty

The container is definitely recreated each run, this is by design (not by me though). I think the following mapping is supposed to put the model in the current directory: $PWD:/root/.torch/models .But perhaps the PyTorch data location has been changed in later versions, so that it saves it to a non-mapped folder?

JohanAR avatar May 21 '21 10:05 JohanAR