Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError with complex_conv3d_1 #15

Open
TeleRagingFires opened this issue Nov 14, 2021 · 0 comments
Open

ValueError with complex_conv3d_1 #15

TeleRagingFires opened this issue Nov 14, 2021 · 0 comments

Comments

@TeleRagingFires
Copy link

I am now trying to use Keras-complex on an autoencoder for one image compression and reconstruction project.
In my code:

**def encoder(x):
    x = complexnn.conv.ComplexConv3D(filters=2, kernel_size=(3, 3, 2), padding='same', data_format='channels_first',
                                     input_shape=(1, 32, 32, 2))(x)**

as the first layer of my model, where x is predefined with
**image_tensor = Input(shape=(img_channels, img_height, img_width, img_RI))**
The Error report I got:
ValueError: Input 0 is incompatible with layer complex_conv3d_1: expected axis 1 of input shape to have value 0 but got shape (None, 1, 32, 32, 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant