Skip to content

Run time error in prediction stage with pytorch-fpn #1474

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

You must be logged in to vote

I believe this is caused by a discrepancy between your chip_sz and img_sz. I think any of the following will fix it:

  1. Pass img_sz=chip_sz to SemanticSegmentationGeoDataConfig.
  2. Change 'out_size': (chip_sz, chip_sz) to 'out_size': (256, 256) (256 is the default value of img_sz).
  3. Set chip_sz = 256.

You will need to retrain your model.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@NoaMillsUSDA-ARS
Comment options

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