Retinanet-Tutorial icon indicating copy to clipboard operation
Retinanet-Tutorial copied to clipboard

Error occurred when finalizing GeneratorDataset iterator

Open nomanpust opened this issue 4 years ago • 2 comments

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}}]]

nomanpust avatar Sep 24 '20 03:09 nomanpust

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)

jaspereb avatar Sep 24 '20 04:09 jaspereb

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??

nomanpust avatar Sep 24 '20 07:09 nomanpust