tmp_c= (c * 255).astype(“uint8”)
ssimw = compare_ssim(c, b, win_size=3, data_range=c.ptp())
ssimw = compare_ssim(c, b, win_size=3, data_range=255)
newimg = (fake_BB + 1) * 0.5 * 4095
show_image(newimg)
print("new_img = ", newimg.dtype)
tmp_newimg