OpenNMT Forum

Question about the input channel error

Hi, all
Great Thanks to OpenNMT.
However, I am a beginner of NLP related.
When i try to translate image to latext (im2text) using a image screenshot from some paper , I got the error information.
In detail, with "-image_channel_size 1 " at the end of translate.py command line , it is “Given groups=1, weight of size 64 3 3 3, expected input[1, 1, 97, 500] to have 3 channels, but got 1 channels instead”
and “Given groups=1, weight of size 64 3 3 3, expected input[1, 4, 97, 500] to have 3 channels, but got 4 channels instead” while with "-image_channel_size 3 " .
This makes me confused.

Hi,

It seems you got some recommendations on GitHub: