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

File "afy/cam_fomm.py", line 6, in <module› import requests

Open Rider-glitchers opened this issue 3 years ago • 88 comments

Please I need help on how to get pass this stage. After downloading the Tar file and placing it on the Avatarify-Python folder, I ran the last command and instead of the two Cam and Avatarify Camaras to pop up, I got this;

Traceback (most recent call last): File "afy/cam_fomm.py", line 6, in <module› import requests ModuleNotFoundError: No module named 'requests' 9A59DD23-9003-4E69-8271-AD7E9FBD5F97

Rider-glitchers avatar Dec 16 '22 14:12 Rider-glitchers

I’m having the same problem

gjshegz1 avatar Dec 16 '22 15:12 gjshegz1

@alievk

gjshegz1 avatar Dec 16 '22 15:12 gjshegz1

Hello, just install the dependencies via miniconda.

pip install requests pip install opencv-python pip install face_alignment

This should install everything necessary. But then another error occurs. The SSL certificate has expired...

Download these Files: https://www.adrianbulat.com/downloads/python-fan/2DFAN4-cd938726ad.zip https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth

And place them here: C:\Users\%USERPROFILE%\.cache\torch\hub\checkpoints\

Hope this helps you :>

Nocturna22 avatar Dec 16 '22 16:12 Nocturna22

@twerpyfie will it work from me too ? image I'm stuck here .

geekedpriest avatar Dec 16 '22 18:12 geekedpriest

@twerpyfie will it work from me too ? image I'm stuck here .

Yes i think so. Give it a try ^^

Nocturna22 avatar Dec 16 '22 18:12 Nocturna22

Hello, just install the dependencies via miniconda.

pip install requests pip install opencv-python pip install face_alignment

This should install everything necessary. But then another error occurs. The SSL certificate has expired...

Download these Files: https://www.adrianbulat.com/downloads/python-fan/2DFAN4-cd938726ad.zip https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth

And place them here: C:\Users\xxxxxxUSERFOLDERxxxxxx.cache\torch\hub\checkpoints\

Make sure to replace xxxxxxUSERFOLDERxxxxxx with your WindowsUsername.

Hope this helps you :>

I’ve downloaded it where will I paste it please

gjshegz1 avatar Dec 16 '22 18:12 gjshegz1

I’ve downloaded it where will I paste it please

C:\Users\%USERPROFILE%\.cache\torch\hub\checkpoints\

Nocturna22 avatar Dec 16 '22 18:12 Nocturna22

I’ve downloaded it where will I paste it please

C:\Users%USERPROFILE%.cache\torch\hub\checkpoints\

100A49F2-9A17-49D1-A2B8-0CB0E76C9C60 Directory not found

gjshegz1 avatar Dec 16 '22 18:12 gjshegz1

Directory not found

Ups i didnt mention to start the run_windows.bat again, sorry. After the process you should be able to find the folder i think. If not, there is a problem with your PyTorch installation.

Nocturna22 avatar Dec 16 '22 18:12 Nocturna22

Directory not found

Ups i didnt mention to start the run_windows.bat again, sorry. After the process you should be able to find the folder i think. If not, there is a problem with your PyTorch installation.

Thanks for the reply But it’s still show’s directory not found How do I fix the PyTorch installation

gjshegz1 avatar Dec 16 '22 18:12 gjshegz1

@twerpyfie

gjshegz1 avatar Dec 16 '22 19:12 gjshegz1

@twerpyfie

I found a better solution. First download DeepFaceLive. Start ist. Set the settings And then use OBS to get the Stream:

https://github.com/iperov/DeepFaceLive https://github.com/iperov/DeepFaceLive/blob/master/doc/windows/for_streaming.md

Nocturna22 avatar Dec 17 '22 10:12 Nocturna22

Thank you I’ll try it now 🙏🏽

gjshegz1 avatar Dec 17 '22 14:12 gjshegz1

@twerpyfie image Please there’s no .exe file how do I install

gjshegz1 avatar Dec 17 '22 16:12 gjshegz1

No, you dont have to clone the repo, you have to download the right installer under Click me hard daddy Y-Y Extract it and run the batfile inside that folder. Just double click it.

Nocturna22 avatar Dec 17 '22 16:12 Nocturna22

Thank you, That’s what I just did but .bat file is not found

gjshegz1 avatar Dec 17 '22 16:12 gjshegz1

Im also getting the same error message, is there a solution?

ayamga1 avatar Dec 18 '22 03:12 ayamga1

Are there any solutions yet? Has anyone been able to download avatarify succesfully?

geekedpriest avatar Dec 18 '22 23:12 geekedpriest

Mine works now. I followed the message someone sent me;

I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands

pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas

I also copied the 7 files from the modules folder into the fomm folder. This now works

Rider-glitchers avatar Dec 18 '22 23:12 Rider-glitchers

Please help how I will ran those commands I'm having problems installing avatarify......please help 🙏

Michael3264 avatar Dec 19 '22 05:12 Michael3264

Mine works now. I followed the message someone sent me;

I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands

pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas

I also copied the 7 files from the modules folder into the fomm folder. This now works

Thanks alot, it solved the issue

ayamga1 avatar Dec 19 '22 17:12 ayamga1

then

Hello help me how can i solve mine

Michael3264 avatar Dec 19 '22 17:12 Michael3264

How can i run those commands? Plz help

Michael3264 avatar Dec 19 '22 17:12 Michael3264

Mine works now. I followed the message someone sent me;

I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands

pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas

I also copied the 7 files from the modules folder into the fomm folder. This now works

@Jblaac7 please if you can help just do a simple tutorial on this it’ll help a lot thanks 🙏🏽

gjshegz1 avatar Dec 19 '22 19:12 gjshegz1

Mine works now. I followed the message someone sent me; I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas I also copied the 7 files from the modules folder into the fomm folder. This now works

@Jblaac7 please if you can help just do a simple tutorial on this it’ll help a lot thanks 🙏🏽

Bro just run those command in the miniconda thats all

ayamga1 avatar Dec 19 '22 20:12 ayamga1

Mine works now. I followed the message someone sent me; I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas I also copied the 7 files from the modules folder into the fomm folder. This now works

@Jblaac7 please if you can help just do a simple tutorial on this it’ll help a lot thanks 🙏🏽

Bro just run those command in the miniconda thats all

Pip install CV2 doesn’t work

gjshegz1 avatar Dec 19 '22 21:12 gjshegz1

Mine works now. I followed the message someone sent me; I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas I also copied the 7 files from the modules folder into the fomm folder. This now works

@Jblaac7 please if you can help just do a simple tutorial on this it’ll help a lot thanks 🙏🏽

Bro just run those command in the miniconda thats all

Pip install CV2 doesn’t work

Now run the bat file it should work now

ayamga1 avatar Dec 19 '22 21:12 ayamga1

pip install pandas

Bro I have tried this method for three days now and I can't still solve this issue. I need your help please. This is my snap handle i_mpaler

Impaler6 avatar Jan 05 '23 15:01 Impaler6

@alievk

Pls does my MSI laptop meets all the requirements. Will the installation work on windows 11pro? window 11 pro Core i7 9750h 9th gen 8gb dedicated Nvidia rtx 2080 max q 6 cores (Hexa core) 32gb ram 512 ssd

CharlesFranklin1 avatar Jan 08 '23 11:01 CharlesFranklin1

Mine works now. I followed the message someone sent me;

I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands

pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas

I also copied the 7 files from the modules folder into the fomm folder. This now works

where can I locate the module folder so I can copy the 7 files, I can't find it

Rossumploits01 avatar Jan 19 '23 15:01 Rossumploits01