[Python] How to convert image in fast fourier transform signal?

Discussão em 'Python' iniciado por Stack, Março 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to convert image into fast fourier transform signal and used the following peace of code:

    fake_A1 = tf.signal.fft2d(fake_A1)


    where input image type is: <class 'numpy.ndarray'> but I am getting following error:

    tensorflow.python.framework.errors_impl.InvalidArgumentError: Value for attr 'Tcomplex' of float is not in the list of allowed values: complex64, complex128
    ; NodeDef: {{node FFT2D}}; Op<name=FFT2D; signature=input:Tcomplex -> output:Tcomplex; attr=Tcomplex:type,default=DT_COMPLEX64,allowed=[DT_COMPLEX64, DT_COMPLEX128]> [Op:FFT2D]


    How may I make it solve?

    Continue reading...

Compartilhe esta Página