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

Static Noise with sample.py #16

Open
chavinlo opened this issue Oct 1, 2022 · 3 comments
Open

Static Noise with sample.py #16

chavinlo opened this issue Oct 1, 2022 · 3 comments

Comments

@chavinlo
Copy link
Contributor

chavinlo commented Oct 1, 2022

Hello, I was trying out the out/inpainting method you mentioned in the readme.

After training for about 1000 steps, I tried out sample.py with inpainting.
Input Images:
dsa_mask
dsa
Output:
image
image

I have also read from other issues that at least 10k steps are necesarry, is there something wrong I could be doing?

@Jack000
Copy link
Owner

Jack000 commented Oct 2, 2022

if you just want to use the inpainting model, you shouldn't have to do any training. Download the pretrained inpainting model and use the CLI commands in the readme.

if you really do want to train a custom inpaint model on your own dataset, I strongly recommend resuming from my checkpoint instead of the base SD model.

@chavinlo
Copy link
Contributor Author

chavinlo commented Oct 2, 2022

if you just want to use the inpainting model, you shouldn't have to do any training. Download the pretrained inpainting model and use the CLI commands in the readme.

if you really do want to train a custom inpaint model on your own dataset, I strongly recommend resuming from my checkpoint instead of the base SD model.

Thanks for the recommendation, yeah it was pretty silly training it from scratch, I was using the Waifu Diffusion model.
Btw, how many steps and images have you trained your inpaint model on? required resolution still is 512x512 right?

@Jack000
Copy link
Owner

Jack000 commented Oct 2, 2022

I just added some code to load the weights from an uninitialized SD model, should work better now if you want to train from a base SD model.

I trained for 100k steps at 256 batch size with the LAION aesthetic dataset, which took about a week on 8xA100. I trained with 512 resolution but it's an adjustable parameter.

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