Skip to content

princetonvisualai/SPICE-U

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Towards Unique and Informative Captioning of Images

Code for the ECCV paper:

Towards Unique and Informative Captioning of Images

Zeyu Wang, Berthy Feng, Karthik Narasimhan, Olga Russakovsky

@inproceedings{wang2020spiceu,
  title={Towards Unique and Informative Captioning of Images},
  author={Zeyu Wang and Berthy Feng and Karthik Narasimhan and Olga Russakovsky},
  booktitle={European Conference on Computer Vision (ECCV)},
  year={2020},
}

Requirements

  • java 1.8.0+
  • python 3+
  • SPICE

Usage

  1. Parse the captions using the code from SPICE (see SPICE for the input format). Example:
java Xmx8G -jar spice-1.0.jar example_input.json -out example_parsed.json -detailed -subset
  1. Compute SPCIE-U score with compute_spiceu.py. Example:
python compute_spiceu.py --parsed_input example_parsed.json --uniqueness_dict coco_train_uniqueness_dict.pkl

where the uniqueness_dict is a dictionary with key as concept and value the corresponding uniqueness score for the concept. In the paper, we calcuate the uniqueness score for a concept c using the training set with uniqueness(c) = # images not containing c / # images total. But it can be modified based on the specific application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages