Skip to content

RuntimeError: applying transform RandCropByPosNegLabeld #1811

Discussion options

You must be logged in to vote

I ended up understanding the cause of this error. I'm writing it here in case it can help someone else.

The problem didn't come from the code. It was the dataset. The labels of two CT scans must have been incorrectly exported. As a result, the dimensions of the labels didn't match the dimensions of the scans (for scans #6 and #10).

Deleting these mislabeled scans from my dataset solved the problem :).

Cheers,

Diane

Replies: 2 comments 2 replies

Comment options

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

@dianemarquette
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dianemarquette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants