BicycleGAN : Image Translation with GAN (5)

Share
BicycleGAN : Image Translation with GAN (5)

Limitations of pix2pix, DTN, DiscoGAN & CycleGAN?

  • They produce single answer.
  • They are deterministic models.
    • Translates an image in one-to-one

right fit

  • Paired set, One-to-One : pix2pix (CVPR2017)
  • Unpaired set, One-to-One : DTN (ICLR2017), CycleGAN (ICCV2017)
  • Paired set, One-to-Many : ???

BicycleGAN:

Toward Multimodal Image-to-Image Translation (NIPS2017)
BicycleGAN github

inline
fit
inline

Easy approach:

  • Adopt stochastically sampled noise $N(z)$ to the deterministic generator
  • Hope noise act as latent code to produce diverse results

inline
inline

However, it causes mode collapse

inline

  • Generates from multiple noises but mapped to similar outputs
  • Generator do not care noise
  • Generate learns to ignore random noise when conditioned on relevant context (input image)

Encoder

  • Encourage bijection between the output <-> latent space
  • Disturb two different latent codes to generate same output.
    • Avoid mode collapse

inline

Conditional Variational Autoencoder-GAN

inline
inline

  • Encoder predicts Gaussian
  • Encoding is trained with real data (B)
  • Generator takes latent code with rich info of $B$ and input $A$.
  • At test time, generated from random latent code may produce unrealistic image.
  • Generator never see random noise.
  • Discriminator never see samples from generated from random noise

Conditional Latent Regressor GAN

inline
inline

  • Encoder is latent code regressor.
  • Generated sample is encoded and mapped back to random noise.
  • Latent code is easily and randomly sampled, as test time.
  • Generator never sees ground truth $B$.
  • More vulnerable to mode collapse, probably small dimension of $z$ and $L_1$ loss on $z$ and $\hat{z}$ is not enough to prevent generator easily fool discriminator?

BicycleGAN

inline

Train both model together, with benefit of cycle-loss in $z$ and $B$.

Result

  • Pix2pix + noise : similar realistic outputs
  • cVAE-GAN : adds variation but artifacts caused from random sample at test
  • cLR-GAN : less variant in output and sometimes mode collapse
  • BicycleGAN : hybrid results both diverse and realistic

inline

Quantative experiment

inline

Conclusion

  • Propose solution to mode collapse in the conditional generative setting
  • Combine multiple objectives for encouraging a bijective mapping between the latent and output spaces
  • Produce both realistic and diverse
  • Latent code could be replaced with user controllable parameter in the future
  • Paired set, One-to-One : pix2pix (CVPR2017)
  • Unpaired set, One-to-One : DTN (ICLR2017), DiscoGAN (ICML2017), CycleGAN (ICCV2017)
  • Paired set, One-to-Many : BicycleGAN (NIPS2017)
  • In the future:
    • Unpaired set, One-to-Many : Augmented CycleGAN (probabily ICML2018 submitted), XGAN (ICLR2018 rejected)
    • Multi domains. Not only a source domain to a target domain: StarGAN (CVPR2018 accepted)
    • User controllable noise vector in BicycleGAN

Read more

허깅페이스 르로봇 해커톤 후기

허깅페이스 르로봇 해커톤 후기

본 블로그의 주인장들은 이번 허깅페이스의 르로봇 월드와이드 해커톤의 서울 호스트를 맡았습니다. 너무 재밌었고, 그 과정들과 후기를 남깁니다. 현장은 다큐 형식의 작은 영상을 만들었으니 한번 봐주세요. 계기 저는 LLM 만 하고 있었고, Action 모델은 사실 관심이 없었습니다, 준호는 1년 정도 로봇에 AI 를 넣는 일을 하고 있었죠. 허깅페이스에서 르로봇 플랫폼을 만들고

By park jong hyun
DeepDive LLM 3편 - Reinforcement Learning

DeepDive LLM 3편 - Reinforcement Learning

* 1편 - 사전 학습 (Pre Training) * 2편 - Supervised Fine Tuning * 3편 - Reinforcement Learning Reinforcement Learning Pretrain, SFT 에 이어서 세번째 단계는 Reinforcement Learning (RL, 강화학습) 입니다. 비유를 해보자면, pretrain은 그냥 책을 읽는 것이고요, SFT는 예제 문제와 이미 작성된 해설을 보는 것입니다. RL 은 해설이 없는 문제를 직접 풀어보는 것입니다. 어떻게 풀든

By park jong hyun
DeepDive LLM 2편 - Supervised Fine Tuning

DeepDive LLM 2편 - Supervised Fine Tuning

* 1편 - 사전 학습 (Pre Training) * 2편 - Supervised Fine Tuning * 3편 - 강화 학습 (Reinforcement Learning) Supervised Fine Tuning Post Training 의 첫번째 단계 SFT 입니다. Pre Training 에 비하면 아주 작은 양의 데이터만 필요하지만, 실제로 성능을 이끌어 내는데에는 중요한 단계입니다. 멀티턴 대화 (Multi Turn Conversation) ChatGPT 를 포함해서 대부분의 AI 서비스들은

By park jong hyun
DeepDive LLM 1편 - 사전 학습 (Pre-Training)

DeepDive LLM 1편 - 사전 학습 (Pre-Training)

본 포스트 시리즈는 카파시 선생님의 영상 을 기반으로 정리한 내용입니다. 직접 유투브에서 다루기도 했으니 영상으로 보셔도 됩니다. * 1편 - 사전 학습 (Pre-Training) * 2편 - Supervised Fine Tuning * 3편 - 강화 학습 (Reinforcement Learning) LLM 의 Training LLM을 만들 때는 크게 세 가지 주요 단계가 있습니다. 1. 사전 학습(Pre-Training) * 인터넷 텍스트(

By park jong hyun