-
Notifications
You must be signed in to change notification settings - Fork 189
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
Bounding Box Error when Retraining Model #665
Comments
Thanks for your interest, you have a poorly formatted annotation matrix.
Your bounding box has no width. @henrykironde I assume this happens due to float rounding or in the original file DeepForest/deepforest/utilities.py Line 228 in 7de55c1
and we could add a warning there.
@LJWsao remove this annotation and close when ready. |
I removed this annotation and was able to proceed with training successfully. |
I am getting the same error and my file does not have the same issue with @LJWsao and below the full error UserWarning: Got processor for bboxes, but no transform to process it.
|
Hi @AlexPapas - thanks for reporting this issue. Since it's a different cause can you open a new issue with the same information you posted here so that we can dig into it. Also, if it's possible to share the fully annotations file that will help us debug things. |
Describe the bug

I used the documentation recommendations for training a new model. I was using this colab notebook: https://colab.research.google.com/drive/1gKUiocwfCvcvVfiKzAaf6voiUVL2KK_r?usp=sharing to retrain the DeepForest model using my own annotations I made using label-studio. I used the defaults settings and configuration and changed the paths to use my own annotations. About halfway through training, I go an error that said
ValueError: y_max is less than or equal to y_min for bbox(0.81, 0.5075, 0.8175, 0.5705, 0)
. I did some digging and found it originated when image transformations are done in the prewritten dataset.py file line 119 that comes with the DeepForest package. Here is the full screenshot of the error:To Reproduce
The xml file I used is on github here: https://github.com/LJWsao/tree_canopy_research/blob/main/6ddae292-northPast_PNG.xml
The image I used is here: https://drive.google.com/file/d/1qvygFrM8y_eI2JgbUvsIXJuhx3vNMfn_/view?usp=sharing
If you run the colab notebook using these files and the default code, you should be able to get the same results.
How can I can edit dataset.py getitem(self, idx) method to check if the bounding box is wider than one pixel before applying the transformations?
The text was updated successfully, but these errors were encountered: