Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.01 KB

menoh-captioning

Image captioning on Menoh

The model is based on Chainer's example.

Requirements

Demo

build manually

$ git clone https://github.com/Hakuyume/menoh-captioning.git
$ cd menoh-captioning

$ curl -LO https://github.com/Hakuyume/menoh-captioning/releases/download/assets/model.npz
$ curl -LO https://github.com/Hakuyume/menoh-captioning/releases/download/assets/vocab.txt
$ python3 convert.py model.npz

$ curl -LO https://upload.wikimedia.org/wikipedia/commons/7/79/Trillium_Poncho_cat_dog.jpg
$ cargo run --release -- Trillium_Poncho_cat_dog.jpg
a dog laying on a bed with a blanket .

use Docker

$ docker run -it hakuyume/menoh-captioning menoh-captioning Trillium_Poncho_cat_dog.jpg
a dog laying on a bed with a blanket .