Trouble with label JSON formatting for text detection training #739
-
Hello, I have made some json for training and validation, but during trainig i receive this error: "{IndexError}index 2 is out of bounds for axis 2 with size 2" at detction.py line 78 ( boxes[..., [0, 2]] /= w ) Could you help me to understand what's wrong? here an exemple taken from labels.json. The polygons are box so only 4 points { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @dvivarelli 👋 I must confess I'm a bit puzzled by your question, as I don't understand how you got this. So let's try to solve it:
wget https://raw.githubusercontent.com/mindee/doctr/main/scripts/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py |
Beta Was this translation helpful? Give feedback.
-
For people visiting this page, @dvivarelli found the way to solve this: there was an issue in the json formatting (cf. #739 (reply in thread)) The polygons in the JSON were 3-dimensional while they should be 2-dimensional 👍 |
Beta Was this translation helpful? Give feedback.
For people visiting this page, @dvivarelli found the way to solve this: there was an issue in the json formatting (cf. #739 (reply in thread))
The polygons in the JSON were 3-dimensional while they should be 2-dimensional 👍