About usage for monochrome Images

40 views
Skip to first unread message

Faiz Ullah

unread,
Jun 16, 2021, 11:33:21 PM6/16/21
to tensorflow-compression
Hi  Johannes.

I want to use your models for encoding and decoding monochrome (grayscale) (single channel) images. Can I?
What about 16bit images?

looking forward for your reply.

Regards
Faiz

Johannes Ballé

unread,
Jun 18, 2021, 11:55:13 AM6/18/21
to tensorflow-compression
Hi Faiz,

the pre-trained models were trained for RGB images, but you can feed monochrome images into them – they should do a reasonable job at compressing them, although a model specifically trained for monochrome should perform better. I wouldn't recommend feeding 16 bit images, since the pre-trained models are designed to quantize their reconstructions to 8 bit.

If you are ok with training your own models, then it should be very easy to use the models in the models/ subdirectory for both monochrome and/or 16 bit images. You would only need to make a few adjustments in the code.

Hope this helps!
Johannes

--
You received this message because you are subscribed to the Google Groups "tensorflow-compression" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tensorflow-compre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tensorflow-compression/91274790-cdb6-425a-9953-ab2c3aeaa5e7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages