Page 1 of 1

Would it be possible to specify which GPU the faceswap is processed on?

Posted: Sat Jan 18, 2020 10:31 am
by Fattee

So I recently upgraded and have two mismatched video cards.

GPU 0 is a Geforce GTX 770 4GB
GPU 1 is a Geforce RTX 770 8GB

Until i get new monitors, I'm stuck using the older geforce GTX 770 as my main card due to dual DVI being needed. I was hoping to mess around with the settings for real face or villain, but the fact I'm using GPU 0 with 4GB prevents that.

Would it be possible to add the option to target a specific GPU device? For instance target all processing on GPU 1 or GPU 2 if GPU 0 is being used to drive the monitors in a system?


Re: Would it be possible to specify which GPU the faceswap is processed on?

Posted: Sat Jan 18, 2020 12:30 pm
by torzdf

Whilst this isn't currently directly an option in Faceswap, you can do this by setting an environment variable.

See here:
https://stackoverflow.com/questions/497 ... indows-cmd


Re: Would it be possible to specify which GPU the faceswap is processed on?

Posted: Sat Jan 18, 2020 8:44 pm
by Fattee

hmmm i'm not really sure how to get that to work. Is it a straight python command i run before starting the app?