Skip to content

SemanticSegmentationConfig's predict_options vs chip_options? #2194

Answered by AdeelH
NoaMillsUSDA-ARS asked this question in Q&A
Discussion options

You must be logged in to vote

chip_options applies to the chip stage (which extracts chips into image files before the train stage) of the pipeline. If you are using GeoDatasets (via GeoDataConfig), then you are not using the chip stage, so chip_options has no effect. See the effect of the nochip param in this example.

Similarly, predict_options applies to the predict stage. It currently does not allow specifying padding and pad_direction; however, as of #2190 (not released yet), the padding value used by default is calculated such that pixels around the edges of the scene do not get left out of the prediction, even if crop_sz is specified.

It might make sense, in the future, to let PredictOptions take a WindowSamplin…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by NoaMillsUSDA-ARS
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