alievk / avatarify-python

Avatars for Zoom, Skype and other video-conferencing apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

None AttributeError: _2D

TOKZIK opened this issue · comments

commented

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?

Check yo ur camera plug ...

Contact on WhatsApp ‪+234 811 513 3627‬

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

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

Then
Run_windows.bat

that should work.

thenks to kcalidon for the update.

change _2D to TWO_D

change _2D to TWO_D

how do i do that?

commented

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

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

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

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.