Replies: 1 comment
-
Hi @degbun 👋, Looks like your labels are wrong let me attach an example:
polygons [[x1, y1], [x2, y2], [x3, y3], [x4, y4], ...] order of the points doesn't matter / coords should be absolute Hope this helps 🤗 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
File "C:\Users\degbun\Desktop\doctr\venv\Lib\site-packages\doctr\datasets\detection.py", line 86, in format_polygons
_polygons: np.ndarray = np.asarray(polygons, dtype=np_dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (7,) + inhomogeneous part.
In my labels.json, some of my images i have more textRegion than others. So when i launched the command to train the resnet50 on my own dataset i ot this error
Beta Was this translation helpful? Give feedback.
All reactions