Skip to content

tensor dimension input error when running 3D N2V #143

@ywu130

Description

@ywu130

Hello, I encountered this error when running the example 3D training for N2V. The error says: Node: 'model/batch_normalization/FusedBatchNormV3'
2 root error(s) found.
(0) INVALID_ARGUMENT: input must be 4-dimensional[4,32,64,64,32]
[[{{node model/batch_normalization/FusedBatchNormV3}}]]
[[gradient_tape/model/batch_normalization_1/FusedBatchNormGradV3/_184]]
(1) INVALID_ARGUMENT: input must be 4-dimensional[4,32,64,64,32]
[[{{node model/batch_normalization/FusedBatchNormV3}}]]
0 successful operations.
0 derived errors ignored. [Op:__inference_train_function_3323];
It seems it is expecting 2D input, not 3D (5D tensor). And indeed the 2D training example works for me. I am running the example notebook locally. My N2V version: 0.3.2; my tensorflow version: 2.13.0; I am using a M1 macbook.
was this error related to version issue? What would you suggest me to do? Thank you!

Metadata

Metadata

Assignees

No one assigned

    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