GithubHelp home page GithubHelp logo

xrenaa / stylespace-pytorch Goto Github PK

View Code? Open in Web Editor NEW
99.0 4.0 14.0 5.39 MB

Implementation of StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation in PyTorch

Jupyter Notebook 91.80% Python 5.41% C++ 0.30% Cuda 2.48%
stylegan2 stylegan

stylespace-pytorch's Introduction

StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation

Implementation of StyleSpace Analysis: Disentangled Controls for StyleGAN Image Generation (https://arxiv.org/pdf/2011.12799.pdf) in PyTorch

This implementation is mostly relied on rosinality's stylegan2-pytorch

An image

Requirements

I have tested on:

  • PyTorch 1.3.1
  • CUDA 10.1

Usage

For the index and channel, please check the paper (https://arxiv.org/pdf/2011.12799.pdf), e.g., (11_286), channel 286 of generator level 11.

FFHQ

  • Firstly, you should download pretrained model from here and place the stylegan2-ffhq-config-f.pkl into pretrained folder.
  • Open the notebook StyleSpace_FFHQ.ipynb

Car

  • Comming soon

LSUN

  • Comming soon

Credit

The pretrained model weights are from https://github.com/NVlabs/stylegan2 and converted with https://github.com/rosinality/stylegan2-pytorch

stylespace-pytorch's People

Contributors

xrenaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stylespace-pytorch's Issues

Editing Failed

Sorry to bother.

I used the default setting but modified the resolution to 256, and I tried the channels you used and provided by paper. However, it seems like nothing has changed. Even with channels from the low layers, the image does not change.😭😭😭

图片

图片

Input images

Hi!

How can I input an image and manipulate its eye gaze? This repo is only for random noise?

GANs inversion using encoder4editing

Hi!

I am implementing GANs inversion using repo encoder4editing.
But I saw that they trained the model with stylegan2 generator to be fixed. In your notebook, you also use pretrained model of stylegans2, and then inject it into your encoder, decoder.

  1. Is your decoder with conv wrapper is what makes StyleSpace?
  2. I asked the author of encoder4editing and they said as follow:

Screenshot from 2021-07-06 18-49-29

But I do not clearly understand the phrase "extracting the StyleSpace representation during a forward pass of the generator". Could you explain me this? Thank you

A communication community for Stylespace

Thanks to the excellent work, StyleSpace.
However,it is a new concept and one always explores the S space alone.
Hence, I create a QQ group (754288725) for communication of StyleSpace.
I hope everybody can communicate and brainstorm here.

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.