Run time error in prediction stage with pytorch-fpn #1474
-
I am building a semantic segmentation model that uses four bands of satellite data. I am running rastervision in a singularity container on a compute cluster. Per my previous discussion post, I have cloned the pytorch-fpn repo to my working directory on the compute cluster, and use the ExternalModuleConfig function to link the fpn model as in the isprs_potsdam.py example. When I run the model, I am able to get through the train and bundle stages, but I get the following error at the prediction stage:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What version/branch of RV are you using? Can you share your |
Beta Was this translation helpful? Give feedback.
-
I believe this is caused by a discrepancy between your
You will need to retrain your model. |
Beta Was this translation helpful? Give feedback.
I believe this is caused by a discrepancy between your
chip_sz
andimg_sz
. I think any of the following will fix it:img_sz=chip_sz
toSemanticSegmentationGeoDataConfig
.'out_size': (chip_sz, chip_sz)
to'out_size': (256, 256)
(256 is the default value ofimg_sz
).chip_sz = 256
.You will need to retrain your model.