GithubHelp home page GithubHelp logo

maplespirit / mc_gan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyojinpark/mc_gan

0.0 2.0 0.0 1.33 MB

MC-GAN: Multi-conditional Generative Adversarial Network for Image (BMVC 2018)

Python 98.96% HTML 1.04%

mc_gan's Introduction

Semantic Image Synthesis via Adversarial Learning

This is a PyTorch implementation of the paper MC-GAN: Multi-conditional Generative Adversarial Network for Image (BMVC 2018).

Model architecture

Requirements

Model1

please download a pre-trained model bird and base image for training base_img_bird, base_img_flower

Additional Datasets

Prepare the Caltech-200 birds dataset and Oxford-102 flowers dataset for reproducing main results in this repository

Run Model1

Train a MC-GAN model on the bird (CUB) dataset using our preprocessed embeddings: python main.py --cfg cfg/birds_3stages.yml --gpu 0

Test a MC-GAN model

Change cfg/*.yml files to generate images from pre-trained models.

  1. Train.flag = False
  2. Train.net_G = 'path of pre-trianed model'

result

Brids Brids Brids Brids

Model2

please download a pre-trained model bird and text embedding model

Run Model2

  • Text embdding
    • run train_text_embeddng.py
  • Train Generative model
    • run train_MCb.py
  • Test
    • run test.py

please follow result in this repository

Results

Birds Birds Birds Birds Birds Birds Birds Birds

##Citing MC-GAN

If you find MC-GAN useful in your research, please consider citing:

@inproceedings{park2018mc,
  title={MC-GAN: Multi-conditional Generative Adversarial Network for Image Synthesis},
  author={Park, Hyojin and Yoo, Youngjoon and Kwak, Nojun},
  booktitle={The British MachineVision Conference (BMVC)},
  year={2018}
}

Acknowledgements

mc_gan's People

Contributors

hyojinpark avatar

Watchers

James Cloos avatar Michael Yue 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.