Skip to content

ValueError: The size of the proposed random crop ROI is larger than the image size. #706

Answered by Nic-Ma
dannyhow12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dannyhow12 ,

Thanks for your interest and experiments here.
I think the root cause is that: your crop ROI is spatial_size=(128, 128, 64), but some of your images after spacing transform is smaller than the ROI size. Could you please help pad the image or reduce the ROI?

Thanks.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ferchonavarro
Comment options

@Ontheroad123
Comment options

Answer selected by dannyhow12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants