How can I use a pre-trained neural network with grayscale images?

后端 未结 11 1281
无人及你
无人及你 2020-12-02 09:35

I have a dataset containing grayscale images and I want to train a state-of-the-art CNN on them. I\'d very much like to fine-tune a pre-trained model (like the ones here).

11条回答
  •  渐次进展
    2020-12-02 09:49

    why not try to convert a grayscale image to a RGB image?

    tf.image.grayscale_to_rgb(
        images,
        name=None
    )
    

提交回复
热议问题