fengyang0317 / unsupervised_captioning

Code for Unsupervised Image Captioning
MIT License
215 stars 51 forks source link

some quesitons about the process of images that will input the net #22

Closed sakura2233565548 closed 4 years ago

sakura2233565548 commented 4 years ago

in the "preprocess_image" function of input_pipeline.py: image = image * 2 - 1 why did you do this operation? I can't understand~could you tell me the reason?

fengyang0317 commented 4 years ago

The InceptionV4 model is pre-trained in this way.