Skip to content

RuntimeError: applying transform <monai.transforms.io.dictionary.LoadImaged object at 0x7f65ffee7f70> ,When I setting 2D classification Dataset. #3693

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

You must be logged in to vote

Hi @danny0628 ,

Thanks for your interest in MONAI and Clara Train SDK.
I feel your transform and network setting is not correct:

"name": "LoadImaged",
"args": {
"keys": ["image", "label"]    --> your label is not image, should not in `LoadImaged`
},

And I saw every label has 15 classes: "label":[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], but your DenseNet output 2 channels?

Thanks.

Replies: 1 comment 2 replies

Comment options

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

@Nic-Ma
Comment options

Answer selected by danny0628
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