Closed f-amerehi closed 1 year ago
Hi @rgeirhos hope that all is well. Could you please let me know how could I change mean_power_spectrum_grey.npy
file to be able to run that code?
Thanks!
Hi @f-amerehi I messaged my co-author @carmete regarding this and am currently waiting for their reply.
Hi @f-amerehi! Thank you for trying out our code. Unfortunately, I cannot re-run the code right now, but here is my quick assessment.
get_mean_amplitude_spectrum
to produce a new power spectrum over your own dataset or any similar dataset of 256x256 images and obtain a new get_mean_amplitude_spectrum.npy
With regards to code bugs in calculate_mean_power_spectrum.py
:
calculate_amplitude_spectrum
should be get_amplitude_spectrum
mean_power_spectrum = np.zeros(image1[:,:,0].shape, image1.dtype)
should instead be mean_amplitude_spectrum = np.zeros(image1[:,:,0].shape, image1.dtype)
Let me know, if this works and sorry for the inconvenience!
Hi @carmete. Many thanks for the help!
Thank you very much @rgeirhos also. I'll close off the issue.
I would like to ask you how can I modify
mean_power_spectrum_grey.npy
file.It seems it only works for 224x224 images. For the default "test_image.JPEG" image as it is 256x256 I got error the following errorI read
calculate_mean_power_spectrum.py
file and tried to useget_mean_amplitude_spectrum
function but is seems the file is buggy andcalculate_amplitude_spectrum
is not defined or imported