a-PyTorch-Tutorial-to-Image-Captioning icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Image-Captioning copied to clipboard

Expected output for running caption.py

Open lisaliu1997 opened this issue 3 years ago • 1 comments

Hi, I'm running caption.py with pretrained model just for inference. After I run the model it just outputs <Figure size 640x480 with 10 Axes> with a bunch of warnings which I guess it's ok to ignore. But how can I get the output option from it then?

Thanks in advance

lisaliu1997 avatar Nov 29 '21 20:11 lisaliu1997

@lisaliu1997 I also met this problem and I think it might be due to the window size. So that plt.show() did not work. To solve this, you can add one more line to the code header %matplotlib inline. My code is here: image

Hope this can help you, although it might be too late now:)

Cartermoon avatar Aug 11 '22 13:08 Cartermoon