Coder Social home page Coder Social logo

poly-gan's Introduction

Important : Experimental Research Code

POLY-GAN

Poly-GAN: Multi-Conditioned GAN for Fashion Synthesis

Abstract

We present Poly-GAN, a novel conditional GAN architecture that is motivated by Fashion Synthesis, an application where garments are automatically placed on images of human models at an arbitrary pose. Poly-GAN allows conditioning on multiple inputs and is suitable for many tasks, including image alignment, image stitching and inpainting. Existing methods have a similar pipeline where three different networks are used to first align garments with the human pose, then perform stitching of the aligned garment and finally refine the results. Poly-GAN is the first instance where a common architecture is used to perform all three tasks. Our novel architecture enforces the conditions at all layers of the encoder and utilizes skip connections from the coarse layers of the encoder to the respective layers of the decoder. Poly-GAN is able to perform a spatial transformation of the garment based on the RGB skeleton of the model at an arbitrary pose. Additionally, Poly-GAN can perform image stitching, regardless of the garment orientation, and inpainting on the garment mask when it contains irregular holes. Our system achieves state-of-the-art quantitative results on Structural Similarity Index metric and Inception Score metric using the DeepFashion dataset.

Result

Method SSIM IS
CP-VTON 0.688 2.6049
MG-VTON 0.744 3.03
Poly-GAN Stage 2 0.7174 2.8193
Poly-GAN Stage 3 0.7369 2.6549
Poly-GAN Stage 4 0.7251 2.7904

Architecture of POLY-GAN

Alt text

Alt text

Libraries:

cat requirements.txt | xargs -n 1 pip install

Test:

Download pre-trained models and Data from https://drive.google.com/drive/folders/18eu3OrNh9TbmiED0sotbzGPtLCCecSeT?usp=sharing It has pre-trained weights for Stage 1, Stage 2 and Stage 3.

In test.py, you need to provide location of the pre-trained weights of the stage you will be testing, Target and Reference Image name as well.

The dataset used is borrowed from the code CP-VTON https://github.com/sergeywong/cp-vton

Cite:

    @article{PANDEY2020,
    title = "Poly-GAN: Multi-Conditioned GAN for Fashion Synthesis",
    journal = "Neurocomputing",
    year = "2020",
    issn = "0925-2312",
    author = "Nilesh Pandey and Andreas Savakis",
    }

poly-gan's People

Contributors

dependabot[bot] avatar nile649 avatar

Watchers

 avatar  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.