Skip to content

Conv2D input shape is 4D(batch_size, rows, cols, depth)while this work input shape is 5D (batch_size, target_seq_len, rows, cols, depth) #4

@katieliao

Description

@katieliao

Hello, I was trying to run this code. However, when I was trying to train the model, an error occur:

Input 0 of layer conv2d is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [8, 5, 40, 40, 1]

8 is batch size, 5 is target sequence length, 40x40 is rows x cols and 1 is depth.

I just checked the source code and found that in "encoding" and "decoding" step, we have to run conv2d function, which requires a 4D input [batch size, rows, cols, channels]

How to tackle this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions