Skip to content
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

zero-size array #280

Open
RanJason-Code opened this issue Aug 19, 2023 · 1 comment
Open

zero-size array #280

RanJason-Code opened this issue Aug 19, 2023 · 1 comment

Comments

@RanJason-Code
Copy link

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

@Holmes2002
Copy link

@RanJason-Code any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants