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

Discussions about research, Faceswapping and things that don't fit in the other categories here.


Locked
User avatar
Fattee
Posts: 3
Joined: Sat Jan 18, 2020 10:21 am

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

Post 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?

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

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

Post 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

My word is final

User avatar
Fattee
Posts: 3
Joined: Sat Jan 18, 2020 10:21 am

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

Post 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?

Locked