Train stop after save
root@86a322874a53:/srv/faceswap-master-2# python3 faceswap.py train -A data/trump -B data/cage -m models/
Model A Directory: /srv/faceswap-master-2/data/trump Model B Directory: /srv/faceswap-master-2/data/cage Training data directory: /srv/faceswap-master-2/models Loading data, this may take a while... Loading Model from Model_Original plugin... Exit requested! The trainer will complete its current cycle, save the models and quit (it can take up a couple of seconds depending on your training speed). If you want to kill it now, press Ctrl + c Using TensorFlow backend. Failed loading existing training data. Unable to open file (unable to open file: name = '/srv/faceswap-master-2/models/encoder.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) Loading Trainer from Model_Original plugin... Starting. Press "Enter" to stop training and save model 2018-02-06 04:10:00.910910: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA saved model weights loss_A: 0.18594, loss_B: 0.20080 saved model weights
it saves model weights so fast and the result of course is bad
It says in the stack trace: no such file or directory.
Create the models directory and it will be good I think
not the problem,thanks anyway
i have try it a week ago,it works good ,but recently it always stop early with no error
Can you please reword the problem?
Saving model weights fast is a good thing, saving them at a high frequency will have a performance impact but shouldn't impact the result.
There is a key press (s) that will save the model weights that might have something to do with it.
Can you describe how it stops? Does it freeze the system? Does it hang? Does it give a return code?
Also what version of python3, Cuda, and tensorflow are you using?
thank you! i mean saving model weights fast but the loss is still high ,i have no idea how it stops.just sometimes it works well.most time it saved model weights just once.i use docker pull it.no return code as i show above.python3
It takes a lot of time to converge, I dont know much about the docker image.
Didn't you just press enter too much? pressing enter is the only way to stop it, otherwise it will just continue training indefinitely.
If it stops without pressing enter there's nothing left to do for you but start debugging to see why it exits the program.
Also note that loss_A: 0.18594, loss_B: 0.20080 is not a good value, usable value is closer to 0.03 or less. Also look at the preview to estimate wether your training is ok or not
@Clorr - it looks like his execution stopped directly after the first update/save.
Do reopen if it not solved and that you can bring more info on this
maybe i found the reason.i copy the command and pasted .and the command include lots of enter key/
Thank you for all of you guys.fozhu bless you all.
You're welcome