alievk / avatarify-python

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

None AttributeError: _2D #625

Open TOKZIK opened 1 year ago

TOKZIK commented 1 year ago

please i am getting this error (avatarify) PS C:\Users\OMEN 015\avatarify-python> run_windows.bat [1688015754.628295] Loading Predictor C:\Users\OMEN 015.conda\envs\avatarify\lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:3191.) return _VF.meshgrid(tensors, kwargs) # type: ignore[attr-defined] Traceback (most recent call last): File "afy/cam_fomm.py", line 218, in predictor_args File "C:\Users\OMEN 015\avatarify-python\afy\predictor_local.py", line 49, in init self.fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=True, device=self.device) File "C:\Users\OMEN 015.conda\envs\avatarify\lib\enum.py", line 354, in getattr raise AttributeError(name) from None AttributeError: _2D (avatarify) PS C:\Users\OMEN 015\avatarify-python>... has anyone solved this?

MICKYGEM commented 1 year ago

Check yo ur camera plug ...

Contact on WhatsApp ‪+234 811 513 3627‬

Kcalidon commented 1 year ago

Make sure you have the following installed Visualstudiosetup Cuda Vc_redist.x64

Locate miniconda3/env and delete all the directories there

Locate your avatarify-python directory make sure fomm directory is there

Open miniconda and do these; Cd avatarify-python create a new environment with this

Conda create -n pass (you can use any name, it's of no use but will help with manual installation) Then type Scripts\install_windows.bat

When you get to the solving environment that kills all the time hit Carl+c You get (y/n) hit n Installation will begin

Let it run and yes you will get other error

Now type Pip install -r requirements.txt

Let it all install

Then put your vox file in the avatarify-python directory

Then type Run_windows.bat

You get another error

Then do this Pip Install pillow 9.5.0

Then Run_windows.bat

This time it all works well

Just remember to let me know if it works

I wish I could share the fomm file but I'm new here and I don't know much about git hub

solid-cmd commented 1 year ago

for the last part, do Pip install pillow==9.5.0

Then Run_windows.bat

that should work.

thenks to kcalidon for the update.

MICKYGEM commented 1 year ago

If it doesn’t work well text on whatsapp

On Wed, Jul 19, 2023 at 9:05 AM solid-cmd @.***> wrote:

for the last part, do Pip install pillow==9.5.0

Then Run_windows.bat

that should work.

thenks to kcalidon for the update.

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/625#issuecomment-1641618014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKL6YJ4JL3SRXZGU65QAGTLXQ6IK5ANCNFSM6AAAAAAZYAD2LY . You are receiving this because you commented.Message ID: @.***>

-- MICKYGEM💎

Horace-Leon commented 1 year ago

change _2D to TWO_D

andrewwood790 commented 1 year ago

change _2D to TWO_D

how do i do that?

OGTSP commented 1 year ago

please i am getting this error (avatarify) PS C:\Users\OMEN 015\avatarify-python> run_windows.bat [1688015754.628295] Loading Predictor C:\Users\OMEN 015.conda\envs\avatarify\lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:3191.) return _VF.meshgrid(tensors, kwargs) # type: ignore[attr-defined] Traceback (most recent call last): File "afy/cam_fomm.py", line 218, in predictor_args File "C:\Users\OMEN 015\avatarify-python\afy\predictor_local.py", line 49, in init self.fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=True, device=self.device) File "C:\Users\OMEN 015.conda\envs\avatarify\lib\enum.py", line 354, in getattr raise AttributeError(name) from None AttributeError: _2D (avatarify) PS C:\Users\OMEN 015\avatarify-python>... has anyone solved this?

Just run this command

pip install -r requirements.txt

After its done run_windows.bat camera will open if you have no other issues

MICKYGEM commented 1 year ago

Help text on WhatsApp

On Fri, 4 Aug 2023 at 1:49 PM, OGTSP @.***> wrote:

please i am getting this error (avatarify) PS C:\Users\OMEN 015\avatarify-python> run_windows.bat [1688015754.628295] Loading Predictor C:\Users\OMEN 015.conda\envs\avatarify\lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:3191.) return _VF.meshgrid(tensors, kwargs) # type: ignore[attr-defined] Traceback (most recent call last): File "afy/cam_fomm.py", line 218, in predictor_args File "C:\Users\OMEN 015\avatarify-python\afy\predictor_local.py", line 49, in init self.fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=True, device=self.device) File "C:\Users\OMEN 015.conda\envs\avatarify\lib\enum.py", line 354, in getattr raise AttributeError(name) from None AttributeError: _2D (avatarify) PS C:\Users\OMEN 015\avatarify-python>... has anyone solved this?

Just run this command

pip install -r requirements.txt

After its done run_windows.bat camera will open if you have no other issues

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/625#issuecomment-1665556392, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKL6YJ36IR5FFXI6XYLGFETXTTVUXANCNFSM6AAAAAAZYAD2LY . You are receiving this because you commented.Message ID: @.***>

-- MICKYGEM💎

Kcalidon commented 1 year ago

Manually download the 2d file then copy it to the folder. The file download does not complete during installation

andrewwood790 commented 1 year ago

Kindly give me a link to download the 2d file thanks

MICKYGEM commented 1 year ago

Text on WhatsApp sir

On Fri, 4 Aug 2023 at 2:15 PM, andrewwood790 @.***> wrote:

Kindly give me a link to download the 2d file thanks

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/625#issuecomment-1665592211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKL6YJ4EYVAZNVTSIBQBLS3XTTYWPANCNFSM6AAAAAAZYAD2LY . You are receiving this because you commented.Message ID: @.***>

-- MICKYGEM💎

kroffske commented 1 year ago

The issue related to this: https://stackoverflow.com/questions/76651887/am-facing-attributeerror2d-how-do-i-resolve-it (if you somehow managed to install wrong version.

change the ._2D to .TWO_D files: predictor_local.py crop-video.py demo.py

or just install windows-desktop in readme.