You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the model is applied in patch mode (the default), a loop over the windows is run (on CPU / in Numpy) and passed to model.predict() as a single image each (on GPU / in Keras).
@bertsky did you ever complete this improvement? Maybe on a fork? I would like to run this binarization on a large dataset and with the current procedure it is simply too slow (10-20 images per minute).
When the model is applied in patch mode (the default), a loop over the windows is run (on CPU / in Numpy) and passed to
model.predict()
as a single image each (on GPU / in Keras).sbb_binarization/sbb_binarize/sbb_binarize.py
Line 152 in 8dd0506
This does not utilize the GPU for two reasons:
I suggest changing the following:
keras.utils.Sequence
.predict_generator
instead ofpredict
to get concurrent CPU / GPU computation.The text was updated successfully, but these errors were encountered: