Skip to content

Gitsamshi/Nli-image-caption

Repository files navigation

Enhancing Descriptive Image Captioning with Natural Language Inference

ACL 2021

Requirements

Training

Prepare data

See Most details in data/README.md.

Download nli data here.

  1. coco_nli_new.json is the inference result between multiple references.

  2. nli_dist_mle and nli_dist_rl are output of page-rank algorithm.

    cd experiment
    python analysis.py

Start training

$ CUDA_VISIBLE_DEVICES=0 ./train_aoa.sh

Evaluation

You may use trained models here google drive

$ CUDA_VISIBLE_DEVICES=0 ./test-best.sh

Reference

If you find this repo helpful, please consider citing:

@inproceedings{shi-etal-2021-enhancing,
    title = "Enhancing Descriptive Image Captioning with Natural Language Inference",
    author = "Shi, Zhan  and
      Liu, Hui  and
      Zhu, Xiaodan",
    booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)",
    month = aug,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.acl-short.36",
    doi = "10.18653/v1/2021.acl-short.36",
    pages = "269--277",
}

Acknowledgements

This repository is based on AoANet, and you may refer to it for more details about the code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages