Skip to content
Discussion options

You must be logged in to vote

Hi @sh3rlock14, when we use SlidingWindowInferer, we mainly consider when the original data is too large and the memory is not enough, at this time we can randomly crop during training and predict by sliding window during inference.
For sw_batch_size, you can simply treat it as batch dimension during inference, the total num of windows is windows_num_per_image * batch_size. Additionally, if your roi_size is equal to input_size you can use SimpleInferer directly instead of SlidingWindowInferer. For the overlap arg, it is mainly to ensure more accurate results of the boundary when doing sliding windows.

slices = dense_pat…

Replies: 1 comment

Comment options

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