All Projects → researchmm → Img2poem

researchmm / Img2poem

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Img2poem

Bertqa Attention On Steroids
BertQA - Attention on Steroids
Stars: ✭ 112 (-52.94%)
Mutual labels:  dataset, code
Body reconstruction references
Paper, dataset and code collection on human body reconstruction
Stars: ✭ 96 (-59.66%)
Mutual labels:  dataset, code
Awesome-Deepfakes-Detection
A list of tools, papers and code related to Deepfake Detection.
Stars: ✭ 30 (-87.39%)
Mutual labels:  code, dataset
Omnianomaly
KDD 2019: Robust Anomaly Detection for Multivariate Time Series through Stochastic Recurrent Neural Network
Stars: ✭ 208 (-12.61%)
Mutual labels:  dataset, code
Vehicle reid Collection
🚗 the collection of vehicle re-ID papers, datasets. 🚗
Stars: ✭ 225 (-5.46%)
Mutual labels:  dataset
Codecrumbs
Learn, design or document codebase by putting breadcrumbs in source code. Live updates, multi-language support and more.
Stars: ✭ 2,581 (+984.45%)
Mutual labels:  code
Cave miner
Search for code cave in all binaries
Stars: ✭ 218 (-8.4%)
Mutual labels:  code
Bccd dataset
BCCD (Blood Cell Count and Detection) Dataset is a small-scale dataset for blood cells detection.
Stars: ✭ 216 (-9.24%)
Mutual labels:  dataset
Datalad
Keep code, data, containers under control with git and git-annex
Stars: ✭ 234 (-1.68%)
Mutual labels:  dataset
Structured3d
[ECCV'20] Structured3D: A Large Photo-realistic Dataset for Structured 3D Modeling
Stars: ✭ 224 (-5.88%)
Mutual labels:  dataset
Code Snippets
Code Snippets WordPress Plugin
Stars: ✭ 226 (-5.04%)
Mutual labels:  code
H36m Fetch
Human 3.6M 3D human pose dataset fetcher
Stars: ✭ 220 (-7.56%)
Mutual labels:  dataset
Stocknet Dataset
A comprehensive dataset for stock movement prediction from tweets and historical stock prices.
Stars: ✭ 228 (-4.2%)
Mutual labels:  dataset
Bookmarks.dev
Bookmarks and Code Snippets Manager for Developers & Co
Stars: ✭ 218 (-8.4%)
Mutual labels:  code
Datasets
source{d} datasets ("big code") for source code analysis and machine learning on source code
Stars: ✭ 231 (-2.94%)
Mutual labels:  dataset
Collection
Collection Data for Cooper Hewitt, Smithsonian Design Museum
Stars: ✭ 214 (-10.08%)
Mutual labels:  dataset
Code Confuse Plugin
iOS代码混淆插件;A plugin to confuse codes in iOS Platform.
Stars: ✭ 226 (-5.04%)
Mutual labels:  code
Weatherbench
A benchmark dataset for data-driven weather forecasting
Stars: ✭ 227 (-4.62%)
Mutual labels:  dataset
Stationary
Get hourly meteorological data from one of thousands of global stations
Stars: ✭ 225 (-5.46%)
Mutual labels:  dataset
Junk
📓 mooc code playground
Stars: ✭ 224 (-5.88%)
Mutual labels:  code

Beyond Narrative Description: Generating Poetry from Images by Multi-Adversarial Training

An implementation of the image-to-poem model described in the paper: "Beyond Narrative Description: Generating Poetry from Images by Multi-Adversarial Training." Accepted as the best paper of ACM MM2018.

Bei Liu, Jianlong Fu, Makoto P. Kato, Masatoshi Yoshikawa

Full text available at: https://arxiv.org/abs/1804.08473

Contents

Model Overview

Introduction

The Img2poem model is a deep neural network that learns how to generate poems from images. For example:

Architecture

Getting Started

Install Required Packages

(It is recommended to install the dependencies under Conda environment.)

  • python2.7
  • tensorflow1.6
  • mxnet
  • opencv
  • tqdm
  • colorama
  • flask

Prepare the Training Data

Name #Poem #Line/poem #Word/line
MultiM-Poem 8,292 7.2 5.7
UniM-Poem 93,265 5.7 6.2
MultiM-Poem(Ex) 26,161 5.4 5.9

Both datasets are formatted in JSON files.

MultiM-Poem.json: image and poem pairs

[
    {
        "poem": str,
        "image_url": str,
        "id": int
    },
    ...
]

UniM-Poem.json: poem corpus

[
    {
        "poem": str,
        "id": int
    },
    ...
]

Download Trained Model

Please download models from https://1drv.ms/u/s!AkLgJBAHL_VFgSyyfpeGyGFZux56 and put it under "code/".

Generating Poems

The following command line will generate poem for an image.

python test.py

Type in the relative path to the test image in the console and the poem will be generated.

../images/test.jpg

Example output:

the sun is singing in the forest wind
and let us go to the wind of the sun
let the sun be free
let us be the storm of heaven
and let us be the slow sun
we keep our own strength together
we live in love and hate

Results

Here are some examples of poems generated by eight methods for an image.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].