Open altear opened 3 years ago
I have the same problem, weights are not saving, only session_config.yaml are saved, but model is not saved.
I'm not sure, but is seems that the problem could be in the monitored_metrics part. For example, you could try to rename metric "val_PSNR_Y" to "val_generator_PSNR_Y" and see if it helps or if it is what you want.
The problem appears to be that metric "val_PSNR_Y" is not in training nor validation losses when training the model, so this metric is removed from monitored_metrics and as a result no metrics are monitored and thats why models are not being saved.
Thanks
Just a heads up for anyone who's maintaining the repo. The code was mostly just c+p from the Training section from the README. If it's a configuration issue, it might continue to be an issue for people using the demo code
Just a note, using code from notebooks/ISR_Traininig_Tutorial.ipynb for training should work, since the metric there is actually 'val_generator_PSNR_Y', as it should be.
thanks @altear, there is a discrepancy in the readme. I will probably just remove this option or make it default if there is no match. @dpincic is correct, thanks for helping!
thanks @altear, there is a discrepancy in the readme. I will probably just remove this option or make it default if there is no match. @dpincic is correct, thanks for helping!
Is it possible to manually extract weights from the trainer object to save as h5?
The weights are stored for each epoc?
The trained net is stored in .keras\datasets\
I'm trying to train my network on my own images, but after ~16h (after training was complete) I realized that not a single model was saved to the weights directory.
This is the code I'm running (basically just the getting-started code)
The only things that ever appears in the weights folder is the session_config.yaml