Skip to content

Controllable mage captioning model with unsupervised modes

Notifications You must be signed in to change notification settings

bladewaltz1/ModeCap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learning Distinct and Representative Modes for Image Captioning (Neurips 2022)

This repo provides the implemetation of the paper Learning Distinct and Representative Modes for Image Captioning.

Install

pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu116
pip install transformers yacs scipy

Data

Follow the instructions in VLP.

Run

python -m modecap.train data_dir PATH_TO_DATA
python -m modecap.inference data_dir PATH_TO_DATA model_path PATH_TO_MODEL

About

Controllable mage captioning model with unsupervised modes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages