Skip to content

Reconstruct Regression Image from Patches #1997

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

You must be logged in to vote

Unfortunately, we currently do not have a built-in Labels or LabelStore subclass for regression. Support for regression is limited to the Regression*Dataset classes, the RegressionLearner, and the RegressionVisualizer.

If we were to implement it, I imagine it would look pretty similar to the SemanticSegmentationSmoothLabels class. In fact, it might even be possible to use it directly for regression without any changes.

I think you might be able to get away with the following. Let me know if it works.

ds_labels: Dataset = SemanticSegmentationSmoothLabels.from_predictions(ds.windows, predictions)
ds_labels.save(
    uri='/path/to/pred_dir/',
    crs_transformer=ds.scene.raster_source.crs_tr…

Replies: 1 comment 5 replies

Comment options

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

@AdeelH
Comment options

@jejjohnson
Comment options

@AdeelH
Comment options

@jejjohnson
Comment options

Answer selected by jejjohnson
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