Last active
July 2, 2021 10:42
-
-
Save Akash-Rawat/8c133d591ab621a935848bc5858d9741 to your computer and use it in GitHub Desktop.
Sample_Prediction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.imshow(images[4].to("cpu").permute(1, 2, 0)) | |
plt.axis("off") | |
_ = plt.title(get_caption(model.generate_caption(images[4].unsqueeze(0)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment