-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fine-tune BigGAN? #1
Comments
Hi, the discriminator weights are not public so you will have to find a work-around to fine-tune the model as a GAN. |
Do you think it works to train a custom discriminator from scratch, while just fine-tuning the generator weights? |
Hi, Do you figure it out if it works? |
I am trying to do some domain shift with BigGAN. The weights of the discriminator and of the generator are available here: https://github.com/ajbrock/BigGAN-PyTorch. I am still trying different setups and hyper-parameters. But I am still not getting to the desired result. |
Hi, can I fine-tune the biggan model with a small amount of datasets? |
What worked the best for me was to download the imagenet dateset and change one of the classes with your own data. You won't see any meaningful shift before 10k iterations though. |
Hi, The comment on the code below states that this needs to be re implemented if we want to train the generator. class BigGANBatchNorm(nn.Module): If you just want to use the generator to flow gradients through, but don't want to change the weights of the generator, do you have to re-implement the batchnorm, or leave as is? Thank you! |
@VictorZuanazzi how can i change one classe on my own dataset? |
@nnajeh what I did was pretty simple. I downloaded the Imagenet dataset, each class is stored in a separate folder. I selected a few folders, deleted the images inside the folders, and added my own data to them. |
@VictorZuanazzi even if i don't have the same image sizes of the imagenet? |
The images of ImageNet have all sorts of different sizes, the data loader should include transformations for resizing them to the desired dimensions. You can check for the documentation on the transformations here: https://pytorch.org/vision/0.8/transforms.html. It would look like this:
|
@VictorZuanazzi and should i rename the images the same as of imagenet? |
That was not necessary for me, but I don't know how your dataset class is set up. |
@VictorZuanazzi my data are png files so I cannot put them with Imagenet files?
|
Would it be possible to finetune this BigGAN implementation to a custom dataset, in order to generate new classes of images?
The text was updated successfully, but these errors were encountered: