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

img2img script generates corrupted images #98

Closed
araleza opened this issue Jul 9, 2024 · 2 comments
Closed

img2img script generates corrupted images #98

araleza opened this issue Jul 9, 2024 · 2 comments

Comments

@araleza
Copy link

araleza commented Jul 9, 2024

Hi, I've been trying to use your sample_img2img.sh script. But, it seems to generate corrupted output, even when given a Lumina-generated image as input.

For example, I can generate a nice image by calling the sample_img2img.sh script, with strength=1.0 (so it's basically just sample.sh):

'close up of woman, outdoors':
image

but if I then use this image as the input, and change the strength to 0.15, I get this output:
image

Here are the parameters I'm using in sample_img2img.sh:

# Lumina-Next supports any resolution (up to 2K)
# res="1024:024x1024 1536:1536x1536 1664:1664x1664 1792:1792x1792 2048:2048x2048"
res=1024:1024x1024
t=4
cfg=4.0
seed=25
steps=50
solver=euler
strength=0.15
image_dir=input.png
model_dir=../../models/next/
cap_dir=caption.txt
out_dir=output_dir

I'm using the lumina_next_t2i_mini version.

@thelemuet
Copy link

thelemuet commented Jul 12, 2024

Could it be that you are using the same seed during img2img generation that was used to generate the initial image? I could be way off since you seemed to imply this was also happening with init images not previously generated with Lumina, but suggesting just in case it helps.

EDIT: Small clarification, this is regardless of prompt, a unique seed tends to generate details in the same places, especially the finer details. Basically creates a feedback loop and ends up looking like bad sharpening filtering applied to a blurry picture, exactly like your second picture.

@araleza
Copy link
Author

araleza commented Jul 14, 2024

@thelemuet, actually yes, you're right, changing the seed gets rid of the mess, and produces a high quality output image.

you seemed to imply this was also happening with init images not previously generated with Lumina

Well spotted, the actual problem I had originally that made me create this issue is that I had a non-Lumina source image, and it was getting badly blurred when I did img2img with denoising strength 0.15. I wanted to create this GitHub issue about it, so I made these new images with Lumina. But like you spotted, I've introduced a second (likely unrelated) problem by using the same seed for both passes.

I'll go back to my original image and see if I can make a better test case. But I'll close this one in the meantime. Thanks for your help.

@araleza araleza closed this as completed Jul 14, 2024
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