Training text detection model with a custom dataset - target ValueError #1714
-
Hello, I'm trying to train a text detection model on a custom dataset. I have formatted the input data according to https://github.com/mindee/doctr/tree/main/references/detection, here's how my labels.json looks like: Here, img_dimensions is a tuple (height, width). During training, after many iterations, I encounter the following error: Additionally, I notice that in Resize transform module, "if np.max(target) <= 1" condition is true for most samples, but false for a few. I would be very greatful if someone could explain the origin of this error and suggest how to modify the training data in order to resolve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @lkosh 👋, Looks like an small overflow: modify: doctr/doctr/transforms/modules/pytorch.py Line 80 in 9045dcf to:
I will open a PR to fix this soon. Best regards, |
Beta Was this translation helpful? Give feedback.
Hi @lkosh 👋,
Looks like an small overflow:
modify:
doctr/doctr/transforms/modules/pytorch.py
Line 80 in 9045dcf
to:
I will open a PR to fix this soon.
Best regards,
Felix