-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
AttributeError: Can't pickle local object 'GeneratorEnqueuer.start.<locals>.data_generator_task' #93
Comments
You can get rid of this error by changing |
Does anyone know how to solve this issue? |
@JPlin in order to run in my Windows 10 machine, I have manually modified "model.py" of Mask_RCNN source code at lline#2192。
The modified code block looks like:
Just like @MatinHz mentioned, I have modifiy "workers=1" and "use_multiprocessing=False"! Now, you should be able to do the "train_shapes" tutorial. Please noted that, this is just a temporal fix! |
@erhwenkuo Thanks for your answer.I want to train my own dataset ,and it seems important to use multiprocessing to speed up training.So i am looking forward a more solid solution. |
@JPlin Did you find any other solution? |
@erhwenkuo Thanks for your solution, it works! |
@yf704475209 @PengTedShen @waleedka @MatinHz @JPlin @erhwenkuo @wjdhuster2018 @xjock, I have submitted this PR to Keras to get the issue fixed. You may wan to add your vote/voice to the conversation here to get this long-standing Windows issue finally adressed. |
Thank you for your work on this @philferriere . I read through the discussion but it wasn't clear whether multi-GPU training on Windows will be possible now the PR has been merged? |
@DarylWM The PR address an orthogonal issue (i.e., generating input data/labels on the CPU), not multi-GPU training. I do not know how well multi-GPU training works on Windows. If you have the hardware setup and get to play with it, I would love to know what kind of performance you manage to get. Good luck! |
@philferriere I saw that Keras has merged your PR. Thank you for the fix. Is it accurate to say that this model will now work on Windows without needing any changes? |
Hi, I meet a problem when I run the train_shapes.ipynb. In the Training block, when I run model.train(dataset_train, dataset_val, learning_rate=config.LEARNING_RATE, epochs=1, layers='heads')
it reports a error, this is it's detail:
I have run the demo successfully, but it seems I can not train my own model. please help if you know anything about my error! Thanks a lot!
The text was updated successfully, but these errors were encountered: