stylegan2-pytorch icon indicating copy to clipboard operation
stylegan2-pytorch copied to clipboard

conditional implementation

Open PieraRiccio opened this issue 4 years ago • 6 comments
trafficstars

Hi, did you also implement a conditional implementation, so that I can pass files with labels, as in the original TensorFlow implementation?

PieraRiccio avatar Dec 20 '20 11:12 PieraRiccio

Currently this implementation does not support label supervision. But it will be not very hard to add it.

rosinality avatar Dec 21 '20 00:12 rosinality

Hi @rosinality , thank you for your answer. Okay then, I will try to add it (and let you know if I manage). If in the meanwhile you add it, please keep me updated! :)

PieraRiccio avatar Dec 21 '20 10:12 PieraRiccio

Hey, I forked your repository and made a fast (and not very general) implementation yesterday. I am still checking if it converges on my dataset, but maybe you may like to give a look at it. :)

https://github.com/PieraRiccio/stylegan2-pytorch

PieraRiccio avatar Dec 22 '20 10:12 PieraRiccio

Nice work! Definitely it looks like how this implementation should have been.

rosinality avatar Dec 22 '20 12:12 rosinality

@PieraRiccio Sorry for resurrecting this. I'm trying to convert a conditional model trained using Nvidia's implementation (from https://github.com/NVlabs/stylegan2-ada-pytorch ) to rosinality's format.

Am I correct in assuming you followed the same implementation of label conditioning as the NVIDIA implementation? Thank you!

snakch avatar May 29 '21 08:05 snakch

Hey there! The PyTorch implementation for the conditional training did not exist at that time, but I replicated the implementation in TensorFlow, so I guess the answer to this question is: yes! :)

PieraRiccio avatar Jun 01 '21 16:06 PieraRiccio