Code Monkey home page Code Monkey logo

aesthetic-image-captioning-iccvw-2019's Introduction

Aesthetic Image Captioning from Weakly-Labelled Photographs

Koustav Ghosal, Aakanksha Rana, Aljosa Smolic

PyTorch implementation for the paper. alt text

We provide json files in coco format and thus they can be used with any framework that uses the same. For our experiments, we use the PyTorch implementation provided here.

Once the data is cleaned using the scripts provided, it can be plugged in to their code easily. Several web-crawlers are available for downloading the AVA Images. This data and the scripts should be sufficient to try the idea out on a different dataset. Hopefully, this page will be updated (blame procrastination if it doesn't) with cleaner and commented code and please check regularly.

Until then, please contact [email protected] for issues.

Data

Here's a link to Google Drive containing the following:

1. AVA_Comments_Full.txt : File contains the raw AVA_Comments with image IDs.
2. CLEAN_AVA_FULL_COMMENTS.json : A basic cleaning applied to the raw text data and saved as json
3. CLEAN_AVA_FULL_AFTER_SUBJECTIVE_CLEANING.json : AVA-Captions dataset with clean comments
4. AVA_TRAINING_FULL_DELIMITED_LDA_LABELLED.json: AVA-Captions json with LDA labels added for CNN training
5. LDA_AVA_200_50_passes_10000_iter_.p: LDA model trained on AVA-Captions dataset
6. _temp_topics_iteration_200.txt: Topic list corresponding to the model
7. AVA_FULL_VALIDATION.json: AVA-Captions validation set of 9362 images and corresponding captions. Format same as coco validation set.
Scripts
1. clean_comment_json.py : Performs a basic cleaning of the text file #1 and returns #2
2. clean_using_subjectivity.py: Implements the probabilistic caption filtering strategy on #2 and returns #3
3. lda_with_n_grams.py: Runs LDA with 200 topics on #3 and returns #5 and #6
4. topic_modelling_labelling.py: Labels #3 and returns #4
5. spice_best.py: Computes spice for all reference captions and returns the best. This isn't implemented in COCO evaluation code and should be added inside coco-caption/pycocoevalcap/spice/

Bibtex

@article{ghosal2019aesthetic,
  title={Aesthetic Image Captioning From Weakly-Labelled Photographs},
  author={Ghosal, Koustav and Rana, Aakanksha and Smolic, Aljosa},
  journal={arXiv preprint arXiv:1908.11310},
  year={2019}
}

aesthetic-image-captioning-iccvw-2019's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.