-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR in Generating Greek language images #51
Comments
Hi, It seems that the number of corpus weights is different from the number of corpus. https://github.com/clovaai/synthtiger/blob/master/examples/synthtiger/config_horizontal.yaml#L16 |
Sorry, can you guide what to change, im trying to generate greek images from corpus, im using this config file, i change the weight but i dont know why still getting the same error coord_output: true vertical: false midground: 0.25 corpus: font: texture: colormap2: colormap3: color: shape: layout: style: transform: pad: postprocess: |
Please change this line. from
to
|
Thank you soo much it worked |
You may ignore this message |
oky thank you soo much now i can make greek recognition model
|
Traceback (most recent call last):
File "C:\Users\Muhammad Hamza\AppData\Roaming\Python\Python39\site-packages\synthtiger\gen.py", line 121, in _generate
data = template.generate()
File "E:\datasetPADDLE\examples\synthtiger\template.py", line 113, in generate
fg_image, label, bboxes, glyph_fg_image, glyph_bboxes = self._generate_text(
File "E:\datasetPADDLE\examples\synthtiger\template.py", line 217, in _generate_text
label = self.corpus.data(self.corpus.sample())
File "C:\Users\Muhammad Hamza\AppData\Roaming\Python\Python39\site-packages\synthtiger\components\wrapper\selector.py", line 29, in sample
idx = meta.get("idx", self._sample_idx())
File "C:\Users\Muhammad Hamza\AppData\Roaming\Python\Python39\site-packages\synthtiger\components\wrapper\selector.py", line 58, in _sample_idx
idx = np.random.choice(len(self.components), replace=False, p=self._probs)
File "mtrand.pyx", line 932, in numpy.random.mtrand.RandomState.choice
ValueError: 'a' and 'p' must have same size
kindly someone help
The text was updated successfully, but these errors were encountered: