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
Hi. Thank you for the nice work. I noticed that during prediction, each image is loaded and OCR is predicted. Can you please tell me how to predict on a batch of images simultaneously in order to increase GPU efficiency and save time. Thanks
elif parameters.phase == 'predict':
for line in sys.stdin:
filename = line.rstrip()
try:
with open(filename, 'rb') as img_file:
img_file_data = img_file.read()
except IOError:
logging.error('Result: error while opening file %s.', filename)
continue
text, probability = model.predict(img_file_data)
logging.info('Result: OK. %s %s', '{:.2f}'.format(probability), text)
The text was updated successfully, but these errors were encountered:
Hi. Thank you for the nice work. I noticed that during prediction, each image is loaded and OCR is predicted. Can you please tell me how to predict on a batch of images simultaneously in order to increase GPU efficiency and save time. Thanks
The text was updated successfully, but these errors were encountered: