ankush-me / ankush-me/SynthText

zero-size array

Ouverte
#280 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
2.1k
Forks
624
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I use a linux server without a graphical interface to run python gen.py. Sometimes the following error will appear, and sometimes it will not appear. Does anyone know the reason for this?
i have seen #228 ,but I don't know where to modify.Hope to get your reply!thanks!

Traceback (most recent call last):
File "/data01/home/scy0798/run/xrzhao/SynthText-python3/synthgen.py", line 660, in render_text
regions['homography_inv'][ireg])
File "/data01/home/scy0798/run/xrzhao/SynthText-python3/synthgen.py", line 525, in place_text
im_final = self.colorizer.color(rgb,[text_mask],np.array([min_h]))
File "/data01/home/scy0798/run/xrzhao/SynthText-python3/colorize3_poisson.py", line 440, in color
lx, ly = np.min(loc[0]), np.min(loc[1])
File "<__array_function__ internals>", line 6, in amin
File "/data01/home/scy0798/miniconda3/envs/SynthText3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2880, in amin
keepdims=keepdims, initial=initial, where=where)
File "/data01/home/scy0798/miniconda3/envs/SynthText3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.