Skip to content

Japanese-Image-Captioning/ClipCap-for-Japanese

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClipCap for Japanese

Screen Shot 2022-10-05 at 0 46 10

Instructions

  1. Dowload datasets & unzip & place it in ./ (./STAIR-captions).
  2. Download COCO datasets & unzip & place it in ./ (./train2014, ./val2014).

Train

python train.py

Generate Caption

  python train.py --eval

Examples

16

output: 庭の芝生の上に青い服の男性がいる


25

output: 男性がスケートボードをしている


27

output: 窓の外にテントが立ている


28

output: パソコンのキーボードの上に黒い猫がいる


37

output: 黒い猫が黒い猫のトイレに頭を付けている


0

output: キッチンの中にたくさんの商品が並べられている


1

output: 猫がテーブルの上にある器を見ている


42

output: 野球の応援をしている男性と、その後ろで観戦している男性


Others

Licence

This work is licensed under the MIT License. To view a copy of this license, see LICENSE.