Attention-OCR
Attention-OCR copied to clipboard
bucket_specs
Hello! Thank for your opening source code. It's a wonderful code.
I want to ask what the meaning of bucket_specs in DataGen class: self.bucket_specs = [(int(64 / 4), 9 + 2), (int(108 / 4), 15 + 2), (int(140 / 4), 17 + 2), (int(256 / 4), 20 + 2), (int(math.ceil(img_width_range[1] / 4)), word_len + 2)]
I guess they are used for images with different size
they are for grouping images with the approx same width in the training process.