资源算法GAN-CLS

GAN-CLS

2019-09-09 | |  156 |   0 |   0

Text To Image Synthesis

This is an experimental tensorflow implementation of synthesizing images. The images are synthesized using the GAN-CLS Algorithm from the paper Generative Adversarial Text-to-Image Synthesis. This implementation is built on top of the excellent DCGAN in Tensorflow.

Model architecture

Image Source : Generative Adversarial Text-to-Image Synthesis Paper

Requirements

Datasets

  • The model is currently trained on the flowers dataset. Download the images from here and save them in 102flowers/102flowers/*.jpg. Also download the captions from this link. Extract the archive, copy the text_c10 folder and paste it in 102flowers/text_c10/class_*.

N.B You can downloads all data files needed manually or simply run the downloads.py and put the correct files to the right directories.

python downloads.py

## Codes - `downloads.py` download Oxford-102 flower dataset and caption files(run this first). - `data_loader.py` load data for further processing. - `train_txt2im.py` train a text to image model. - `utils.py` helper functions. - `model.py` models. ## References - [Generative Adversarial Text-to-Image Synthesis][2] Paper - [Generative Adversarial Text-to-Image Synthesis][11] Torch Code - [Skip Thought Vectors][1] Paper - [Skip Thought Vectors][12] Code - [Generative Adversarial Text-to-Image Synthesis with Skip Thought Vectors](https://github.com/paarthneekhara/text-to-image) TensorFlow code - [DCGAN in Tensorflow][3] ## Results - the flower shown has yellow anther red pistil and bright red petals. - this flower has petals that are yellow, white and purple and has dark lines - the petals on this flower are white with a yellow center - this flower has a lot of small round pink petals. - this flower is orange in color, and has petals that are ruffled and rounded. - the flower has yellow petals and the center of it is brown - this flower has petals that are blue and white. - these white flowers have petals that start off white in color and end in a white towards the tips.

result.png



License

Apache 2.0

链接:text-to-image-master.zip

上一篇:T2F

下一篇:nmtpytorch

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...