Code Monkey home page Code Monkey logo

simnet-1's Introduction

simNet

Implementation of "simNet: Stepwise Image-Topic Merging Network for Generating Detailed and Comprehensive Image Captions" by Fenglin Liu, Xuancheng Ren, Yuanxin Liu, Houfeng Wang, and Xu Sun. The paper can be found at [arxiv].

Usage

Requirements

This code is written in Python2.7 and requires PyTorch 0.3

You need to download pre-trained Resnet152 model from torchvision for both training and evaluation.

You may take a look at https://github.com/s-gupta/visual-concepts to find how to get the topic words of an image.

Training a simNet model

Now we can train our simNet model with

CUDA_VISIBLE_DEVICES=1,2,3 screen python train.py

Testing a trained model

We can test our simNet model with

CUDA_VISIBLE_DEVICES=1,2,3 screen python test.py

Reference

If you use this code as part of any published research, please acknowledge the following paper

@inproceedings{Liu2018simNet,
author = {Fenglin Liu and Xuancheng Ren and Yuanxin Liu and Houfeng Wang and Xu Sun},
title = {sim{N}et: Stepwise Image-Topic Merging Network for Generating Detailed and Comprehensive Image Captions},
booktitle = {EMNLP 2018},
year = {2018}
}

Acknowledgements

Thanks to Torch team for providing Torch 0.3, CodaLab team for providing online evaluation, COCO team and Flickr30k for providing dataset, Tsung-Yi Lin for providing evaluation codes for MS COCO caption generation, Yufeng Ma's open source repositories and Torchvision ResNet implementation.

Note

If you have any questions about the code or our paper, please send an email to [email protected]

simnet-1's People

Contributors

jklj077 avatar

Watchers

 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.