Skip to content
r.

neuraltalk2

karpathy/neuraltalk2 · Public GitHub repository

Efficient Image Captioning code in Torch, runs on GPU

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

neuraltalk2 live demo screenshot
Captured from the live demo · 2026-11-02

About this project

Author-written excerpt from the project README.

Update (September 22, 2016): The Google Brain team has released the image captioning model of Vinyals et al. (2015). The core model is very similar to NeuralTalk2 (a CNN followed by RNN), but the Google release should work significantly better as a result of better CNN, some tricks, and more careful engineering. Find it under im2txt repo in tensorflow. I'll leave this code base up for educational purposes and as a Torch implementation.

Recurrent Neural Network captions your images. Now much faster and better than the original NeuralTalk. Compared to the original NeuralTalk this implementation is batched, uses Torch, runs on a GPU, and supports CNN finetuning. All of these together result in quite a large increase in training speed for the Language Model (100x), but overall not as much because we also have to forward a VGGNet. However, overall very good models can be trained in 2-3 days, and they show a much better performance.

This is an early code release that works great but is slightly hastily released and probably requires some code reading of inline comments (which I tried to be quite good with in general). I will be improving it over time but wanted to push the code out there because I promised it to too many people.

Requirements and intended audience

Update (September 22, 2016): The Google Brain team has released the image captioning model of Vinyals et al. (2015). The core model is very similar to NeuralTalk2 (a CNN followed by RNN), but the Google release should work significantly better as a result of better CNN, some tricks, and more careful engineering. Find it under im2txt repo in tensorflow. I'll leave this code base up for educational purposes and as a Torch implementation.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-04. Source: https://github.com/karpathy/neuraltalk2/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2017-11-07. A published release has not been recorded. These dates do not guarantee ongoing maintenance.

Technologies
Jupyter Notebook
Licence
No licence detected. No recognised licence was detected in the saved metadata. A public repository does not automatically grant permission to reuse its code. Review the repository terms before reusing its code.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories