Retinanet-Tutorial
Retinanet-Tutorial copied to clipboard
Error occurred when finalizing GeneratorDataset iterator
Thank you so much for your great tutorial. But I am facing the error after 25 epochs.. Would you please give me a suggestion to overcome this error? If I want to start training from 25 epochs, what would be the command? Thank you again. tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated. [[{{node PyFunc}}]]
use the --snapshot
argument and point it to the snapshot file you want to use. So something like
keras_retinanet/bin/train.py --tensorboard-dir ~/RetinanetTutorial/TrainingOutput --snapshot-path ~/RetinanetTutorial/TrainingOutput/snapshots --snapshot ~/RetinanetTutorial/TrainingOutput/snapshots/snapshotNumberX --random-transform --steps 100 pascal ~/RetinanetTutorial/PlumsVOC
should work (I haven't tested it though)
Thank you. after 22 or 23 epochs , I am facing the error: tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated. [[{{node PyFunc}}]] Would you please give me any suggestion??