a-PyTorch-Tutorial-to-Image-Captioning
a-PyTorch-Tutorial-to-Image-Captioning copied to clipboard
caption.py strange output
Hello, I used the pre-trained model and word map provided, and it seems to work but in caption.py I obtain always the same sentence with whatever picture, that is:
" a close up of a black and white background"
that makes me think that there is something wrong with the image preprocessing. Do you have any suggestions on how to understand better this problem and fix it?
Thanks
I commented /.255 in the image processing and it was fine...How did it work for you?
Hey, how are you loading the pretrained models provided? @efacco
I am getting this issue? Is it due to any PyTorch version problem?
772 unpickler = pickle_module.Unpickler(f, **pickle_load_args)
773 unpickler.persistent_load = persistent_load
--> 774 result = unpickler.load()
775
776 deserialized_storage_keys = pickle_module.load(f, **pickle_load_args)
ModuleNotFoundError: No module named 'models'
you must put 2 file caption.py and model.py in the same directory
I have the same problem as you, did you solve it?
您好, 我使用了提供的预训练模型和词图, 它似乎可以工作,但是在 caption.py 中,我总是得到与任何图片相同的句子, 即:
“黑白背景的特写”
这让我觉得图像预处理有问题。 你对如何更好地理解这个问题并解决它有什么建议吗?
谢谢
I have the same problem as you, did you solve it?