[Bug]: stop training if sample json exception
What happened?
- Train something
- Time to make sample but if sample json is absent or corrupted it stop training with exception. Not good.
What did you expect would happen?
Better to catch exception and continue process
Relevant log output
No response
Output of pip freeze
No response
Can you add your console log?
File "...\OneTrainer\modules\ui\TrainUI.py", line 518, in __training_thread_function
trainer.train()
File "...\OneTrainer\modules\trainer\GenericTrainer.py", line 554, in train
self.__execute_sample_during_training()
File "....\OneTrainer\modules\trainer\GenericTrainer.py", line 190, in __execute_sample_during_training
fun()
File "....\OneTrainer\modules\trainer\GenericTrainer.py", line 537, in
If no samples .json exists when you press "Start Training", a "samples.json" is created, even if you have not created any samples in the UI.
This is probably an obsolete issue that has been fixed in the meantime. If you disagree, please reply
No reply
No reply
Already self assigned, its in the dataset tools rework. (Made it fail gracefully if for whatever reason the samples file is deleted)
ok, sorry. I thought we don't understand the issue because no reply. reopened.
ok, sorry. I thought we don't understand the issue because no reply. reopened.
Np, yeah he never clarified but at least made my best guess and tried to stop those scenarios.