BUG fixing for cnn-rnn ocr model training if augmentation is false

This commit is contained in:
vahidrezanezhad 2026-03-27 09:15:19 +01:00
parent 7499e3e7b8
commit 8333158ecc

View file

@ -1570,7 +1570,7 @@ def data_gen_ocr(
if to_yield: yield to_yield
else:
img_out, batchcount, ret_x, ret_y, to_yield = increment_batchcount(img_out, batchcount, ret_x, ret_y)
img_out, batchcount, ret_x, ret_y, to_yield = increment_batchcount(img, batchcount, ret_x, ret_y)
if to_yield: yield to_yield