Skip to content

neg_ratio variable object detection error #2021

Answered by AdeelH
GisKamal asked this question in Q&A
Discussion options

You must be logged in to vote

You need to also specify a ClassInferenceTransformerConfig to map polygons in your GeoJSON to class IDs as shown here e.g.:

vector_source = GeoJSONVectorSourceConfig(
uris=label_uri,
ignore_crs_field=True,
transformers=[ClassInferenceTransformerConfig(default_class_id=0)])
label_source = ObjectDetectionLabelSourceConfig(
vector_source=vector_source)

If you have just one class, the above example should work.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@GisKamal
Comment options

@AdeelH
Comment options

@GisKamal
Comment options

@AdeelH
Comment options

Answer selected by GisKamal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants