All bounding boxes should have positive height and width
See original GitHub issueDescribe the bug I created a dataset that already worked with TensorFlow. For some reason, it raises this error when trying to train a model.
Code and Data `from detecto import core, utils, visualize
dataset = core.Dataset(‘analyzepage/’) model = core.Model([‘taskRegion’, ‘pageCount’, ‘infoText’, ‘separateImage’, ‘element’])
model.fit(dataset)`
Environment:
- OS: Windows 10
- Python version: 3.6
- Detecto version: 1.1.6
- torch version: -
- torchvision version: -
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ValueError: All bounding boxes should have positive height ...
ValueError: All bounding boxes should have positive height and width. Found invaid box [500.728515625, 533.3333129882812, 231.10546875, 255.2083282470703] ...
Read more >I am getting a ValueError: All bounding boxes should have ...
ValueError: All bounding boxes should have positive height and width. Found invaid box [264.0, 632.0, 264.0, 633.3333740234375] for target ...
Read more >bounding boxes should have positive height and width. Found ...
Hey I am getting the error ValueError: All bounding boxes should have positive height and width. Found invaid box [264.0, 632.0, 264.0, ...
Read more >ValueError: All bounding boxes should have positive height ...
python - ValueError: All bounding boxes should have positive height and width. Any help solving this will be highly appreciated. I have an ......
Read more >Found invalid box [776.5625, 137.5, 776.5625, 143.75 ... - Zindi
ValueError: All bounding boxes should have positive height and width. Found invalid box [776.5625, 137.5, 776.5625, 143.75] for target at ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oh finally it worked thank you!
Looks like I made a mistake in my script, my bad - try this instead: