Skip to content
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

Training on custom dataset #6

Closed
nviolante25 opened this issue Jun 5, 2023 · 2 comments
Closed

Training on custom dataset #6

nviolante25 opened this issue Jun 5, 2023 · 2 comments

Comments

@nviolante25
Copy link

Hello,
Thanks for the repo!

I'm trying to train GIRAFFE HD on a version of CompCar with the removed background at 256x256 resolution. Based on what I read in this other issue, I trained the model for 50k iterations on 8 GPUs with batch size 32, which should be equivalent in terms of total images. However, my generated images are not looking good. These are some examples of my last checkpoint

049500_0

Do you think this is a problem with the number of iterations and I should continue training for a longer time or is something else in the training config as well?

Thanks in advance!

@AustinXY
Copy link
Owner

Hello,

Sorry for the late reply. Based on your description and the images you've provided, it seems that the results are indeed not as good as expected.

One possible problem could stem from the way you're removing the background from your dataset. If you're utilizing a binary mask for this task, it could be inadvertently providing the discriminator with a clear signal. This happens because the generator would be struggling to mimic the sharp edges created by the mask, thereby tipping the balance of the training process in favor of the discriminator.

You can confirm if this is indeed the case by monitoring the training loss. If the discriminator's loss is significantly low, it likely indicates that this is the root of the problem.

@nviolante25
Copy link
Author

nviolante25 commented Jun 26, 2023

Hello,
Thank you for your response! I'll check that and maybe try to train substituting the background generator with a constant black background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants