How to do inferences with a model that is trained with tiling mechanism? #2427
-
Hi, I'm confused about how to do inferences for the models that are trained with tiling mechanism. For example if model is trained like this (got this from docs):
How then do the inference for the model? Do I need to tile the test image also somehow and feed the model? I guess when tiling is used there are separated model for each tile, so how to use these. Please give concrete example and update docs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is single model tiling config, so the Tiler is part of the model. This means that the image will be tiled in the forwards pass and you don't need to do anything special. I am not sure if this works for onnx though, but should work fine with lightning and torch. If you want to use the tiled ensemble, where a separate model is trained for each tile refer to the Tiled ensemble docs. In that case you have a pipeline for ensemble training and a pipeline for evaluation (prediction). |
Beta Was this translation helpful? Give feedback.
This is single model tiling config, so the Tiler is part of the model. This means that the image will be tiled in the forwards pass and you don't need to do anything special. I am not sure if this works for onnx though, but should work fine with lightning and torch.
If you want to use the tiled ensemble, where a separate model is trained for each tile refer to the Tiled ensemble docs. In that case you have a pipeline for ensemble training and a pipeline for evaluation (prediction).