Thanks, Mark! I can make the changes and create a PR.

There’s something funny with the visualizations they shouldn’t be that saturated. convert_image_dtype isn’t working because your input is already a float.

Thanks for catching it. I didn’t realize even if my inputs are in float, I couldn’t use convert_image_dtype() to scale the pixels to [0. 1]. Maybe casting  the dtype to int after the resizing step (since tf.image.resize() casts to float) would be easier.