flyingwolfz / holoencoder-python-version

unofficial python version of holoencoder (from "High-speed computer-generated holography using an autoencoder-based deep neural network"). pytorch is used.
15 stars 1 forks source link

issue with structural similarity function #1

Open saba-er opened 11 months ago

saba-er commented 11 months ago

Hi, I get this error message when running holoencoder4kload.py: "ValueError: Since image dtype is floating point, you must specify the data_range parameter. Please read the documentation carefully (including the note). It is recommended that you always specify the data_range anyway."

It seems this instruction causes error: ssimm = ssim(target_amp, final)

flyingwolfz commented 11 months ago

Hi, Thanks for raising this issue. It seems that the new version of the skimage must manually specify data_ range. Use: ssim(img_a, img_b,data_range=1)