Git Product home page Git Product logo

msg-stylegan-tf's People

Contributors

akanimax avatar animeshkarnewar-tomtom avatar tkarras 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  avatar  avatar  avatar

Watchers

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

msg-stylegan-tf's Issues

Would you provide a pytorch version code?

Hi, I am using your MSG-GAN code , and it very human-readable and good for user
I tried to read the msg-stylegan but, tensorflow version is so difficult to read ,maybe it's efficient??

If you have proved the effectiveness of the method, I wonder if it is convenient to provide pytorch version of the code for more people to use

Thank you

Not able to run code on CPU.

I want to use the pre-trained model but I am not able to do so using CPU. I don't have a GPU and its raising error.

WGAN-GP loss implementation

Hi,
Thanks for creating this repository! I'm implementing the MSG-GAN method for my own project and I'm trying to use WGAN-GP loss, but I'm finding it difficult since there are multiple images. Could you point to the WGAN-GP loss implementation with multiple images in this repo so that I can use it for reference?
Thanks,
Tharun Mohandoss

Architectural explanation

Dear all,
I would like to kindly ask further explanation about the architectural design of the network, for instance:

  • Why are there multiple skip connections and how the whole thing is trained?
  • Do I have to concatenate both the multi-scale layers from the generator and random real images instances while evaluating the discriminator? How do I do that?
  • There's a "combinational layer" in yellow, what's that?
    I have indeed read the original paper but still, there are some things that I cannot understand so I hope you will kindly answer me.

Looking forward to hearing from you soon.

Sincerely

Are two generator passes per training step actually necessary?

I'm currently working on an own implementation of your great paper during which I came up with the question, if the second generator pass in each training step is actually necessary. What I mean is, that we generate fake samples once to optimize D and then once again to do so for G. But for the second case, the weights of G actually haven't changed so the drawn fakes won't differ either. It would be different, if we used different latent samples for each pass, but this does not seem to be the case.

From my current understanding, we could simply retain the gradients from the first pass and avoid one costly generator call, reducing the computational resources by 25% or something per training iteration. But I have to admit, that I'm more familiar with your PyTorch implementation of the paper, which I took as a reference, to clarify on this question. Nonetheless, I'm asking here, as it seems to be "official" repository.

when i use' python3 train.py'

tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation G_synthesis/noise0/Initializer/random_normal/RandomStandardNormal: Could not satisfy explicit device specification '' because the node {{colocation_node G_synthesis/noise0/Initializer/random_normal/RandomStandardNormal}} was colocated with a group of nodes that required incompatible device '/device:GPU:0'. All available devices [/job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:1, /job:localhost/replica:0/task:0/device:XLA_GPU:2, /job:localhost/replica:0/task:0/device:XLA_CPU:0].

How the gradients flow between the intermediate layers? How to calculate loss between intermediate layers and then find gradient update for that specific layer only

Hi, I am new to python and machine learning. I find this idea very useful to calculate the gradient at not just the final layer but at the intermediate layers of GAN too. If I am not wrong it means that you calculate loss between let's say: Gen3 (generator intermediate layer 3) and Dis3 (discriminator intermediate layer 3) and calculate the gradient update for that layer only. In simple words the loss is being calculated at each layer. Please correct me if I am wrong.

The problem is I am unable to find this implementation in the code provided. Could you please help in understaing the confusion?

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.