aster icon indicating copy to clipboard operation
aster copied to clipboard

create_synthtext_tfrecord.py error

Open ChChwang opened this issue 6 years ago • 3 comments

NameError: global name '_create_samples_of_an_image' is not defined

the function is right?

ChChwang avatar Nov 07 '18 06:11 ChChwang

Comment this line, the function is implemented by the code from line 153 to 180.

ghost avatar Dec 29 '18 03:12 ghost

yes, the code repeats

ChChwang avatar Dec 29 '18 04:12 ChChwang

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).

ThisIsIsaac avatar Oct 22 '19 02:10 ThisIsIsaac