aster
aster copied to clipboard
create_synthtext_tfrecord.py error
NameError: global name '_create_samples_of_an_image' is not defined
the function is right?
Comment this line, the function is implemented by the code from line 153 to 180.
yes, the code repeats
The problem seesm to be that _create_samples_of_an_image
is a method within class SynthTextCreator
defined in create_synthtet_tfrecord.py
. However, _create_samples_of_an_image
is invoked as a normal function:
_create_samples_of_an_image(writer, image_rel_path, text, word_polygons, char_polygons)
Did simply commenting it out solve the error? The function does not seem necessary from the name of the function (if my intuition is correct, is merely generates sample images).