alievk / avatarify-python

Avatars for Zoom, Skype and other video-conferencing apps.
Other
16.23k stars 3.97k forks source link

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

Open Jblaac7 opened 1 year ago

Jblaac7 commented 1 year ago

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

gjshegz1 commented 1 year ago

I’m having the same problem

gjshegz1 commented 1 year ago

@alievk

twerpyfie commented 1 year ago

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 :>

geekedpriest commented 1 year ago

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

twerpyfie commented 1 year ago

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

Yes i think so. Give it a try ^^

gjshegz1 commented 1 year ago

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

twerpyfie commented 1 year ago

I’ve downloaded it where will I paste it please

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

gjshegz1 commented 1 year ago

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

twerpyfie commented 1 year ago

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.

gjshegz1 commented 1 year ago

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 commented 1 year ago

@twerpyfie

twerpyfie commented 1 year ago

@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

gjshegz1 commented 1 year ago

Thank you I’ll try it now 🙏🏽

gjshegz1 commented 1 year ago

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

twerpyfie commented 1 year ago

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.

gjshegz1 commented 1 year ago

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

ayamga1 commented 1 year ago

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

geekedpriest commented 1 year ago

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

Jblaac7 commented 1 year ago

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

Michael3264 commented 1 year ago

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

ayamga1 commented 1 year ago

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

Michael3264 commented 1 year ago

then

Hello help me how can i solve mine

Michael3264 commented 1 year ago

How can i run those commands? Plz help

gjshegz1 commented 1 year ago

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 🙏🏽

ayamga1 commented 1 year ago

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

gjshegz1 commented 1 year ago

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

ayamga1 commented 1 year ago

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

Impaler6 commented 1 year ago

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

CharlesFranklin1 commented 1 year ago

@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

Rossumploits01 commented 1 year ago

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

calistae768 commented 1 year ago

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

pls can you guide me through?

newtonfav commented 1 year ago

rs\%USERPROFILE%.cache\torch\hub\checkpoints\

I got "UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 412: character maps to "\ after copying the files

image

gjshegz1 commented 1 year ago

@newtonfav what kind of computer are you using so I can help, Window? Ram? CPU or GPU NVIDIA type?

newtonfav commented 1 year ago

folder into the fomm folder.

which files exactly did you copy from the modules folder?

newtonfav commented 1 year ago

@newtonfav what kind of computer are you using so I can help, Window? Ram? CPU or GPU NVIDIA type?

windows

newtonfav commented 1 year ago

@newtonfav what kind of computer are you using so I can help, Window? Ram? CPU or GPU NVIDIA type?

windows

I transferred some of the modules files into the avatarify-python folders this is what i get next, how do i resolve the attributeError?

image

gjshegz1 commented 1 year ago

@newtonfav stop that procedure cancel everything and use this method https://github.com/technopremium/avatarify-python-youtube let me know if it works for you

newtonfav commented 1 year ago

@newtonfav stop that procedure cancel everything and use this method https://github.com/technopremium/avatarify-python-youtube let me know if it works for you

I tried using this clone, still getting moduleNotFoundError, it seems the python file is unable to read modules from the miniconda library

image

gjshegz1 commented 1 year ago

@newtonfav https://youtu.be/L1LCv9EO6cI Follow exactly what he did on the video it should work if your pc is compatible

newtonfav commented 1 year ago

@newtonfav https://youtu.be/L1LCv9EO6cI Follow exactly what he did on the video it should work if your pc is compatible

I followed exactly what's in the video, still having same moduleNotFoundError, I believe my PC is compatible, I run 11th gen RTX 3050Ti

gjshegz1 commented 1 year ago

Okay, have you tried asking the guy who created the second project

newtonfav commented 1 year ago

Okay, have you tried asking the guy who created the second project

No, I haven't, It seems to me that the avatarify folder doesn't have access to miniconda3 folder where the dependencies are located, reason for the moduleNotFoundError, really don't know how that can be resolved

gjshegz1 commented 1 year ago

The other clone only works for windows 11

needcrypto90 commented 1 year ago

C:\Users\16262\miniconda3\envs\avatarify\lib\site-packages\torch\nn\functional.py:3385: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details. warnings.warn("Default grid_sample and affine_grid behavior has changed " C:\Users\16262\miniconda3\envs\avatarify\lib\site-packages\torch\nn\functional.py:1639: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")

please what is the remdy to this error? My cam comes up but image is always breaking. I use Nvidia Geeforce RTX 3060

JohanAR commented 1 year ago

@needcrypto90 search open issues for something about RTX 30xx cards, this issue is about something completely different.

needcrypto90 commented 1 year ago

@JohanAR I'm confused .. how do you mean?

JohanAR commented 1 year ago

This is an issue tracker, so comments on this page should be related to the actual issue. I.e. it's not a chat like Discord, where people can talk about anything anywhere. In this case Jblaac7 reported that they have the following error:

ModuleNotFoundError: No module named 'requests'

But you have a completely different error, so you should either find a different issue that matches yours, or create a new issue report (which should use the new issue template, where you fill out relevant information that will make it possible for others to help you).

I happen to remember that others have had problems with running avatarify on RTX 30xx cards, so you should be able to find existing issue reports that are relevant to your problem if you look at the list of open issues.

gjshegz1 commented 1 year ago

This is an issue tracker, so comments on this page should be related to the actual issue. I.e. it's not a chat like Discord, where people can talk about anything anywhere. In this case Jblaac7 reported that they have the following error:

ModuleNotFoundError: No module named 'requests'

But you have a completely different error, so you should either find a different issue that matches yours, or create a new issue report (which should use the new issue template, where you fill out relevant information that will make it possible for others to help you).

I happen to remember that others have had problems with running avatarify on RTX 30xx cards, so you should be able to find existing issue reports that are relevant to your problem if you look at the list of open issues.

Please can you tell the best system spec and GPU that runs avatarify without an issue cos I’ve tried on different computers

JohanAR commented 1 year ago

@gjshegz1 it used to run well for me when I had a GTX 1080, but perhaps it is broken for everybody because of something different (e.g. related to python dependencies changing).

Warlord24 commented 1 year ago

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 :>

This worked for me, I just followed the steps. Thank you!!