While training model I got this warning "UserWarning: An input could not be retrieved. It could be because a worker has died.We do not have any information on the lost sample.)", after showing this warning, model starts training. What does this warning means? Is it something that will affect my training and I need to worry about?
If you are running the training in GPU, the Warning
will occur. You have to know that there are two running progress during the fit_generator
running.
trains
the IMAGE DATASETS with each steps in each epoch.prepares
the IMAGE DATASETS with each batch size.While, they are parallel tasks. So if CPU's compute is lower than GPUs', the Warning
occurs.
Just set your batch_size smaller or upgrade your CPU config.
This is just a user warning that will be usually thrown when you try to fetch the inputs,targets during training. This is because a timeout is set for the queuing mechanism which will be specified inside the data_utils.py
.
For more details you can refer the data_utils.py
file which will be inside the keras/utils
folder.
https://github.com/keras-team/keras/blob/master/keras/utils/data_utils.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With