RichardErkhov / Richard-roop

for those who wants some speed
GNU Affero General Public License v3.0
104 stars 22 forks source link

gfpgan & codeformer performance really slow #18

Open geekbleek opened 1 year ago

geekbleek commented 1 year ago

I'm just playing with these tools, and it looks like the gfpgan and codeformer chains are realllly slow (like 20 minutes for 300 frames or 10 sec of video). I am on 4x A100's, and bumped threads up to 16, and that was the speed I got. I can see the GPU usage, but CPU usage is very high as well. The faceswap alone takes less than a second to execute for the same video.

Any thoughts or is this expected performance?

RichardErkhov commented 1 year ago

For my m40 same thing, fps goes down 10 times, so I guess it's expected, but Im not sure about high cpu usage, maybe misconfigured venv ? From speed drop it seems like enhancement is done on cpu

phineas-pta commented 1 year ago

4x A100 ! try to put more threads

RichardErkhov commented 1 year ago

4x A100 ! try to put more threads

Does code distribute between multiple gpus though ? I dont think so, I dont have multiple gpus to text xD @phineas-pta

Can you tell me if it is distributing on multiple gous? @geekbleek

phineas-pta commented 1 year ago

idk neither, just an attempt