Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED_PRECONDITION finalizing GeneratorDataset #12

Open
chao-mu opened this issue Jul 17, 2024 · 1 comment
Open

FAILED_PRECONDITION finalizing GeneratorDataset #12

chao-mu opened this issue Jul 17, 2024 · 1 comment

Comments

@chao-mu
Copy link

chao-mu commented Jul 17, 2024

Hello,

I successfully trained the square classifier with train_square_classifier.py, but when running train_board_extractor.py, I receive the following error after training:

Epoch 64/100
60/60 [==============================] - ETA: 0s - loss: 0.0372 - dice_coeff: 0.9889 
Epoch 64: ReduceLROnPlateau reducing learning rate to 1.0000000656873453e-06.
60/60 [==============================] - 16s 275ms/step - loss: 0.0372 - dice_coeff: 0.9889 - val_loss: 0.0404 - val_dice_coeff: 0.9883 - lr: 1.0000e-05
Epoch 64: early stopping
Training the board_extractor took 17 minutes and 49 seconds
2024-07-16 18:41:24.963826: W tensorflow/core/kernels/data/generator_dataset_op.cc:107] Error occurred when finalizing GeneratorDataset iterator: FAILED_PRECONDITION: Python interpreter state is not initialized. The process may be terminated.
	 [[{{node PyFunc}}]]
Error occurred when finalizing GeneratorDataset iterator: FAILED_PRECONDITION: Python interpreter state is not initialized.
@gudbrandtandberg
Copy link
Owner

Hey. I have never seen such an error message.. Hopefully the trained model gets written?

Anyway, I have moved the development of this project to the repo
where I use pytorch instead of keras. If you are open to that, you might have more luck there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants