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 LatentInpaintDiffusion model on my datasets, but the results are poor, how can i solve it? #419

Open
LM7XAw opened this issue Jan 14, 2025 · 0 comments

Comments

@LM7XAw
Copy link

LM7XAw commented Jan 14, 2025

Thank you for your great work on this model! I'm training it on my own defect dataset, but the results are not coming out well. What might be the cause of this? How can I improve it?

I'm using the configuration file configs/stable-diffusion/v2-inpainting-inference.yaml with the SD 2.0-inpainting checkpoint as the pre-trained model, but the output is still not satisfactory.

input_gs:
ad7518b474573fffa99f9d0df3c4395c

masked_image:
f44fff233568cb3a295621f9b03ec421

sample_gs:
c7ad9dec1a330b86d05c0ace67a8af14

these images are scaled and padded to $512\times512$, and I randomly mask either the defect areas, the entire object, or a random region in the image.

During training, the loss initially decreases (see sample_gs), but then it starts increases again, and the generated images end up as pure noise.

I'm training on two 3090 with a batch size of 2. I've tried changing the area of the defect mask, prompt, and learning rate, but the results are still not very satisfactory. Any tips for improving the results?

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

1 participant