Skip to content

allows for single key in ConcatItemsd  #1881

@wyli

Description

@wyli

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 that ConcatItemsd 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 and torch.cat work fine with an input list of length 1. I'd like to hear your opinions on this :)

Originally posted by @function2-llx in #1880

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions