genforce / sefa

[CVPR 2021] Closed-Form Factorization of Latent Semantics in GANs
https://genforce.github.io/sefa/
MIT License
964 stars 108 forks source link

About code release schedule #2

Closed rlalpha closed 3 years ago

rlalpha commented 4 years ago

I found that paper is really innovative. I want to try building something on top of it. Can I ask about the estimated released date of the code?

Thank you a lot.

ShenYujun commented 4 years ago

We plan to release the code in 2-3 weeks. Please be patient. ;)

jimmyrustler commented 4 years ago

I think i got the gist of the paper, it can be summarized as these few lines of code.

from sklearn.decomposition import PCA
import torch
z_length = 128
y_length = 64

linear = torch.nn.Linear(z_length, y_length)
gan_model = ...
model = torch.nn.Sequential(linear, gan_model)
#train your model here

pca = PCA(n_components=2)
pca.fit(linear.weight.numpy())

#eigenvectors
print(pca.components_)
#eigenvalues
print(pca.singular_values_)
SteveVanWang commented 3 years ago

We plan to release the code in 2-3 weeks. Please be patient. ;)

hope to build some task on top of this code,may I ask when will release the whole code,thanks a lot

ShenYujun commented 3 years ago

Thanks for the follow-up! We are sorry for the delay because of the CVPR due and we will release the core code next week!

ShenYujun commented 3 years ago

The code is released! Welcome to give it a try ;)

dcalsky commented 3 years ago

The code is released! Welcome to give it a try ;)

Do you willing to share your pre-trained models?

ShenYujun commented 3 years ago

The models are released in the genforce repo and included in this repo as well.