Replies: 2 comments
-
You can have RV output geojson predictions by passing from rastervision.core.data import PolygonVectorOutputConfig
pred_labels.save(
uri=f'out/',
crs_transformer=crs_transformer,
class_config=class_config,
# VectorOutputConfigs for each class you want outputted as GeoJSON
vector_outputs=[
PolygonVectorOutputConfig(
class_id=class_config.get_class_id('my_class'),
# threshold to use for creating binary mask that will then be vectorized
# (default: 1 / num_classes)
threshold=0.5,
# filter out positive regions in the binary mask smaller than
# this diameter (in pixels)
denoise=8,
),
],
) See docs for
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your response! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using lightning model for training of tif file.
Beta Was this translation helpful? Give feedback.
All reactions