faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

CAN I stop "training" after epoch "number"? automatically

Open LLALLA0925 opened this issue 8 years ago • 4 comments

If I do train.py -ep 400, this sequence stops at 399, and do NOTHING!! I want to make train.py to stop( like I push "ENTER" or "ctrl + c" ) when epoch reachs to 400... and get out to CMD(i am using cmd version python) to use other COMMAND without "ENTER"...

I am not good at ENGLISH and python. Can u help me?

LLALLA0925 avatar Apr 04 '18 19:04 LLALLA0925

I haven't tested this but it should work. First time submitting a PR.

andykdy avatar Apr 05 '18 21:04 andykdy

@LLALLA0925 I have a PR currently up for testing (#367) that finishes training when target epochs are reached. It only works, however, if the -p (preview) flag is enabled. Feel free to test.

torzdf avatar Apr 22 '18 11:04 torzdf

see #372

torzdf avatar Apr 23 '18 14:04 torzdf

Fixed in latest commit for preview mode

torzdf avatar Apr 25 '18 13:04 torzdf