Skip to content

NewsStoriesData/newsstories.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsStories: Illustrating articles with visual summaries

alt text

This repository contains a PyTorch implementation of the paper NewsStories: Illustrating articles with visual summaries accepted at ECCV 2022. If you find this implementation or the paper helpful, please consider citing:

@InProceedings{rxtan2022newsstories,
     author={Tan, Reuben and Plummer, Bryan and Saenko, Kate and Lewis, JP and Sud, Avneesh and Leung, Thomas},
     title={NewsStories: Illustrating articles with visual summaries},
     booktitle={Proceedings of the IEEE/CVF European Conference on Computer Vision (ECCV)},
     year={2022} }

Dependencies

  1. Python 3.6
  2. Pytorch version 1.10.0
  3. nltk

Download NewStories Dataset

alt text

Please use this here to download the full dataset which contains the meta data required for downloaading the images, articles and videos. The evaluation split with 5 images can also be found here.

Download GoodNews Dataset and evaluation splits

To begin, please follow the instructions here to download the GoodNews dataset. In our experiments, we evaluate the trained models on the GoodNews dataset.

Next, you can download the evaluation splits that we use in our experiments using the links below:

  1. evaluation split with 3 images
  2. evaluation split with 4 images
  3. evaluation split with 5 images

MIL-SIM code

Training code on NewsStories

python train_model.py --pretrained_path {path to pretrained CLIP model} --num_imgs {maximum number of images in a set} --num_sentences {maximum number of sentences in an article.}

Evaluation code on GoodNews

python eval_goodnews.py

Required Arguments For Training

  1. pretrained_path: path to pretrained CLIP model
  2. num_imgs: maximum number of images in a set
  3. num_sentences: maximum number of sentences in an article.

Contact

Please do not hesitate to contact me at [email protected] if you have any questions or problems running the code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published