Skip to content

AutoencoderKlMaisi input num_splits default value may cause unexpected error #7910

@Can-Zhao

Description

@Can-Zhao

Is your feature request related to a problem? Please describe.
If not given, input num_splits of AutoencoderKlMaisi is set as 16 by default.

This will cause error for input image size like [128,128,128] for a 3 level model.

RuntimeError: Calculated padded input size per channel: (2 x 34 x 34). Kernel size: (3 x 3 x 3). Kernel size can’t be greater than actual input size.

Users may be confused by the error and do not know that the key issue is from num_splits.

Describe the solution you'd like
Change the default value of num_splits to 1, or add docstring or value check to guide the users to tune this parameter.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions