Select between gpus?

If training is failing to start, and you are not receiving an error message telling you what to do, tell us about it here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Training process. If you want to get tips, or better understand the Training process, then you should look in the Training Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
lmcke169
Posts: 4
Joined: Fri Apr 24, 2020 7:26 pm
Answers: 0
Has thanked: 1 time

Select between gpus?

Post by lmcke169 »

My main gpu for video output and gaming is a gtx 1070 but I just got a tesla m40 for deepfakes. It works pretty good on deepfacelab where I can pick the gpu used but I cant find a way to do that in faceswap. It seems to default to my 1070 with no option to pick. I really need the m40 for this since it has 3x the vram. Thanks for any help!

by torzdf » Tue May 05, 2020 8:21 am

You can expose which device is available to Faceswap by setting an environment variable prior to launching:

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

Go to full post
User avatar
torzdf
Posts: 2796
Joined: Fri Jul 12, 2019 12:53 am
Answers: 160
Has thanked: 142 times
Been thanked: 650 times

Re: Select between gpus?

Post by torzdf »

You can expose which device is available to Faceswap by setting an environment variable prior to launching:

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

My word is final

User avatar
lmcke169
Posts: 4
Joined: Fri Apr 24, 2020 7:26 pm
Answers: 0
Has thanked: 1 time

Re: Select between gpus?

Post by lmcke169 »

torzdf wrote: Tue May 05, 2020 8:21 am

You can expose which device is available to Faceswap by setting an environment variable prior to launching:

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

Thank you! I ended up editing the batch file with info from that link. I wasn't able to figure out how to know which gpu is which so I ended up taking 2 tries.

User avatar
torzdf
Posts: 2796
Joined: Fri Jul 12, 2019 12:53 am
Answers: 160
Has thanked: 142 times
Been thanked: 650 times

Re: Select between gpus?

Post by torzdf »

No problem.

I do plan to add this as an option one day, but as there is an easy workaround, it's not a priority (I only have 1 GPU ;) )

My word is final

Locked