-
Hi, Because I need more precision, now I would like to train an other model that will only work on specific regions ( identified by the first model ) on a much more detailed image. The question is, for the prediction, is there a way to use sliding_window_inference only on wanted regions ? Thanks, let me know if you need further explanations. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It would require a bit of code to be written on your part, but could you not crop your image before passing it to the sliding window inferrer? If you wanted, you could then use the inverse transformation to restore it to its original shape (so that you can combine different regions). |
Beta Was this translation helpful? Give feedback.
sliding_window_inferer
works on a batch of data, so I can't see a general way to infer each image in the batch with different crop sizes.It would require a bit of code to be written on your part, but could you not crop your image before passing it to the sliding window inferrer? If you wanted, you could then use the inverse transformation to restore it to its original shape (so that you can combine different regions).