alievk / avatarify-python

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

Running on win10, i7 and 1070gtx poor results #48

Closed theArthuryus closed 4 years ago

theArthuryus commented 4 years ago

First of, thanks for the help into having it running. It seems that it isnt using my gpu, thus less than 1fps and weird warping at frames. My face is fully lit, centered and plain background. Check it out. image

ThomasBarth commented 4 years ago

Yep, have the same. Win 10, Ryzen 7 3800X, Radeon RX590, 16GB RAM. Runs with 60% CPU load and same result as mentioned.

Webcam is 720p, maybe that's too high.

theArthuryus commented 4 years ago

I just replaced the webcam video output to Avatarify with a GIF of Obama moving his lips through OBS and though still less than 1fps, it didnt warp. So I am guessing the warping is related to the capture while the subject in front of the webcam (me) isnt completely still during the slow process of converting to the model.

image

ThomasBarth commented 4 years ago

I guess the resolution of the input also is quiet low? this way we might eliminate the webcam resolution as primary issue.

theArthuryus commented 4 years ago

I lowered the resolution to 150x120 pixels and still less than 1fps. image

theArthuryus commented 4 years ago

Yep, have the same. Win 10, Ryzen 7 3800X, Radeon RX590, 16GB RAM. Runs with 60% CPU load and same result as mentioned.

Webcam is 720p, maybe that's too high.

Regarding using radeon cards, I found this in one of the issues: https://github.com/alievk/avatarify/issues/9#issuecomment-611448118

but it seems that our gpu's arent being used at all

ThomasBarth commented 4 years ago

Yep, have the same. Win 10, Ryzen 7 3800X, Radeon RX590, 16GB RAM. Runs with 60% CPU load and same result as mentioned. Webcam is 720p, maybe that's too high.

Regarding using radeon cards, I found this in one of the issues: #9 (comment)

but it seems that our gpu's arent being used at all

I see, nope no CUDA and also not used (obviously).

alievk commented 4 years ago

Pytorch (a library for running neural network under the hood) heavily relies on CUDA. It's a shame :(

theArthuryus commented 4 years ago

Pytorch (a library for running neural network under the hood) heavily relies on CUDA. It's a shame :(

Yeah, but in my case, running a gtx 1070 should have around 15fps no?

theArthuryus commented 4 years ago

image

alievk commented 4 years ago

@theArthuryus Please try to install CUDA and write back if that helped

theArthuryus commented 4 years ago

I couldve sworn I had already installed CUDA. Working flawlessly. GPU at 30% and fps around 15-20. Thanks, great work by the way!