How to train two models at the same time?

Want to understand the training process better? Got tips for which model to use and when? This is the place for you


Forum rules

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

This forum is for discussing tips and understanding the process involved with Training a Faceswap model.

If you have found a bug are having issues with the Training process not working, then you should post in the Training Support forum.

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

Locked
User avatar
ericpan0513
Posts: 23
Joined: Wed Jul 22, 2020 3:34 am
Has thanked: 6 times

How to train two models at the same time?

Post by ericpan0513 »

So, after I was not able to train with both of my GPUs(p106-100s which took me a long time dealing with), I wonder if it's possible to open two faceswap at the same time to train two models with two GPUs. Or maybe train and convert at the same time? That will be cool.
Just curious. Thanks!

Last edited by ericpan0513 on Wed Aug 26, 2020 3:52 am, edited 1 time in total.
User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Training two models at the same time?

Post by bryanlyon »

Yes you can do this, use the "exclude GPU" option to exclude different GPUs for each instance.

User avatar
ericpan0513
Posts: 23
Joined: Wed Jul 22, 2020 3:34 am
Has thanked: 6 times

Re: Training two models at the same time?

Post by ericpan0513 »

Thanks, but how can I start another training process? I cannot open two gui at the same time. Or it just works on cli?

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Training two models at the same time?

Post by bryanlyon »

The GUI just calls the CLI options, you can click "generate" to give you the command line option to run in another window. That said, you can run multiple GUIs using

Code: Select all

  -LF LOGFILE, --logfile LOGFILE
                        Path to store the logfile. Leave blank to store in the
                        faceswap folder
User avatar
ericpan0513
Posts: 23
Joined: Wed Jul 22, 2020 3:34 am
Has thanked: 6 times

Re: Training two models at the same time?

Post by ericpan0513 »

Sorry, I don't quite understand what you mean. And what does the code mean?
Does it mean that I should use cli window?

User avatar
abigflea
Posts: 182
Joined: Sat Feb 22, 2020 10:59 pm
Answers: 2
Has thanked: 20 times
Been thanked: 62 times

Re: How to train two models at the same time?

Post by abigflea »

You can run 2 at the same time.
Will need 2 gpu.

You may open 2 gui and make sure each one has a different gpu selected in the 'exclude gpu' section.

2 gui running at the same time uses a bit of your ram. 16gb is fine.

:o I dunno what I'm doing :shock:
2X RTX 3090 : RTX 3080 : RTX: 2060 : 2x RTX 2080 Super : Ghetto 1060

User avatar
ericpan0513
Posts: 23
Joined: Wed Jul 22, 2020 3:34 am
Has thanked: 6 times

Re: How to train two models at the same time?

Post by ericpan0513 »

Yeh I know, I just don't know how to open two GUIs haha.
I use the win_launcher to open the second one, however the commend window just popped up and disappear quickly with opening the second GUI.

User avatar
abigflea
Posts: 182
Joined: Sat Feb 22, 2020 10:59 pm
Answers: 2
Has thanked: 20 times
Been thanked: 62 times

Re: How to train two models at the same time?

Post by abigflea »

Curious. I think mine just works.
Your's should too.
I'll try it in a few hours.

I can't remember without sitting at my computer but you can start a new conda environment and evoke the GUI.
I'll tell you in a few hours if someone doesn't beat me to it

:o I dunno what I'm doing :shock:
2X RTX 3090 : RTX 3080 : RTX: 2060 : 2x RTX 2080 Super : Ghetto 1060

User avatar
ericpan0513
Posts: 23
Joined: Wed Jul 22, 2020 3:34 am
Has thanked: 6 times

Re: How to train two models at the same time?

Post by ericpan0513 »

Thanks :D
And yes I start a new conda environment and it works. I just wanna know if there's a simpler way to do it.

Locked