-
Hi, I am trying to train an object detection model using the most recent master branch of raster vision , and running with a docker image on ubuntu machine i get the following error: raise ValueError( the following part of the script that uses the neg_ratio variable is :
any suggestions or corrections ?? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
There are either no bboxes in the scene or the labels and imagery are misaligned. For the latter, make sure that the labels GeoJSON is in epsg:4326 coordinates and that it lines up correctly with the imagery when opened in QGIS. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for your reply, I have checked my GeoJSON labels using QGIS, and they line up perfectly with my tif image, concerning the CRS it's EPSG:4326 for both images and labels. One important think to mention that I hope it could help, its that after running my python file I get this message : 2024-01-09 11:40:57:rastervision.pytorch_learner.learner: INFO - Building datasets ... any idea please on how to resolve the neg_ratio problem ? |
Beta Was this translation helpful? Give feedback.
You need to also specify a
ClassInferenceTransformerConfig
to map polygons in your GeoJSON to class IDs as shown here e.g.:raster-vision/rastervision_pytorch_backend/rastervision/pytorch_backend/examples/object_detection/cowc_potsdam.py
Lines 92 to 97 in fe1d152
If you have just one class, the above example should work.