Skip to content

Problem using different channels #4

@megalinier

Description

@megalinier

Hello! =)
I may have missed something, but I guess that if I want to apply your tfw.dwt2d to an image with different channels, I should be able to write something like:

size_image = 64
nb_channels = 4
tf_signal = tf.placeholder(dtype=tf.float32, shape=(size_image,size_image,nb_channels))
output = tfw.dwt2d(tf_signal, wavelet=dwtcoeffs.haar, levels=3)

But then, I get the following error:
Dimensions must be equal, but are 4 and 1 for 'conv1d_34/Conv2D' (op: 'Conv2D') with input shapes: [64,1,64,4], [1,2,1,1].

Actually, the dimensions of the filters are wrong... While there is no problem when nb_channels = 1.
Would you know how to fix this please?
Thank you very much!

Mathilde

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