Should ConcatItemsd
require at least 2 keys?
#1880
function2-llx
started this conversation in
General
Replies: 1 comment 1 reply
-
makes sense, I'm converting this into a feature request, thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone I'm using
ConcatItemsd
for concatenating the inputs from multi-modalities images. During development sometimes I adjust the number of modalities of inputs, even to single modality. However I found thatConcatItemsd
in monai currently does not allow this, with an exception raised here.This restriction is inconvenient for me and personally I can't find the point of this restriction because both
numpy.concatenate
andtorch.cat
work fine with an input list of length 1. I'd like to hear your opinions on this :)Beta Was this translation helpful? Give feedback.
All reactions