28
Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th of October 2018 Session: E8289

Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Fashion Design with GANs:

Disentangling Color, Texture,

and Shape

Gökhan Yildirim

Calvin Seward

Urs Bergmann

11th of October 2018 Session: E8289

Page 2: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Fashion E-Commerce @

2

~ 4.5billion EUR

revenue 2017

> 200

million

visits

per

month

> 15,000employees in

Europe

> 70%of visits via

mobile devices

> 23millionactive customers

> 300,000product choices

~ 2,000brands

15countries

Page 3: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Fashion Design at Zalando

Current Trends

DesignManufacturing How can computers help speed-up the process?

Page 4: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Generative Adversarial Networks (GANs)(Goodfellow et. al., 2014)

● Train two neural networks in an adversarial setting

4

Discriminator

Generator

Latent

Variable

Real Data

Real

or Fake?

Generated

Data

Generated Digits Real Digits

(LeCun and Cortes, 1998)

Page 5: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

GANs and Fashion

5

The Conditional Analogy GAN: Swapping Fashion Articles on

People Images (Jetchev and Bergmann, 2017)

Fashion Style Generator

(Jiang and Fu, 2017)

Swapping Clothes in Photos Clothing Texture Design

Page 6: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Attribute Control and Disentangling

6

● Attribute control○ Color

○ Texture

○ Shape

● Disentangle○ Each attribute has a separate effect

○ Changing one should not change the

other

Discriminator

Generator

Latent

Variable

Real Data

Real

or Fake?

Generated

Data

Page 7: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Our Model

● Attribute Data○ Color

■ 3-dim

■ RGB

○ Texture (local structure, pattern)

■ 512-dim

○ Shape (segmentation mask)

■ Embedded first

■ 512-dim

Discriminator

Generator

Texture

(512-dim)

Color

(3-dim) Mask

Embedding

Network

Shape

(128x128)

Real Images

(128x128)

(512-dim)

Generator

Losses

Real

or Fake?Color

Estimation

Color

(3-dim)

Real Masks

(128x128)

7Generated Image

Page 8: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Discriminator Losses

“Improved Training of Wasserstein GANs”

(Gulrajani et. al., 2017)

“Conditional Image Synthesis With Auxiliary Classifier GANs

(Odena et. al., 2017)

8

Page 9: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Generator Losses

● Color Consistency

● Texture Consistency

● Shape Consistency

● Generator Color Check

9

Page 10: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Color Consistency

color

texture

shape

10

Average Dress Color

Color Consistency Loss

Page 11: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Texture Consistency

● Laplacian matting matrix ○ (NxN image → N²xN² matrix)○ A Closed Form Solution to Natural Image Matting (Levin et. al., 2006)

Input Image (with markings) Estimated Matte11

Page 12: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Texture Consistency

color

texture

shape

12

Texture Consistency Loss

Laplacian Matrices

Page 13: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Shape Consistency

color

texture

shape

13

Shape Consistency Loss

Background Color

Page 14: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Generator Color Check

color

texture

shape

14

Generator Color Check

Average Dress Color

Page 15: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Experiments & Results

● Modified the code from *

● Directly generate 128x128 pixel images

● NVIDIA P100 GPU → 1 week of training

● Dataset → 120,000 dresses from Zalando

● ADAM Optimizer (LR=0.001, B1=0, B2=0.99) (Kingma and Ba, 2014)

*Progressive Growing of GANs for Improved Quality, Stability, and Variation

(Karras et. al., 2018)

15

Page 16: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Color Control

16

● Changing color

● Texture and shape stay the same

Page 17: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Texture Control

17

● Changing texture

● Color and shape stay the same

Page 18: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Shape Control

18

● Changing shape

● Color and texture stay the same

Page 20: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Fashion Design

Real Article Reconstructed ArticleEstimated Shape Mask

20

Page 21: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Fashion Design

Shape

TextureTexture

Shape

Color

21

Page 22: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Failure Cases

Real Article Reconstructed ArticleEstimated Shape Mask

22

Page 23: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

What’s Next?

● Improve upon the design model

○ Allow for multiple colors/color histograms

○ More attributes

○ Direct texture input

23

Page 24: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Thank You!

Page 25: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Preserving Local StructureDeep Photo Style Transfer

(Luan et. al., 2017)

25

Page 26: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Laplacian Matrix

Size of the neighborhood

Mean color vector (within neighborhood)

Color covariance matrix (within neighborhood)

26

Page 27: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Controlling the Color

● Start small (32x32)

● Latent Vector + Color input (RGB)

● Pro:○ We get the desired color

● Con:○ Color input changes the shape

Same latent vector - Different colors

27

Page 28: Fashion Design with GANs: Disentangling Color, Texture ...€¦ · Fashion Design with GANs: Disentangling Color, Texture, and Shape Gökhan Yildirim Calvin Seward Urs Bergmann 11th

Adding Shape Consistency

● Shape consistency with Laplacian

Matting matrices

● Weighting between color and shape

control

28