Skip to content

fix: infotext using index 0 #12156

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

Closed
wants to merge 1 commit into from

Conversation

boohyunsik
Copy link

Description

As I mentioned issue #12149 , I found that infotext function using index when controlnet included, but seed array only contains just one value. So I modified that infotext funtion uses index 0 during batch processing.

Screenshots/videos:

Checklist:

@@ -115,7 +115,7 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args, to_scale=Fal

for n, processed_image in enumerate(proc.images):
filename = image_path.stem
infotext = proc.infotext(p, n)
infotext = proc.infotext(p, 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your implementation will cause wrong metadata to be applyed to the image if batch > 1
I made an alternative implementation #12164

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much!

@AUTOMATIC1111
Copy link
Owner

merged in wew's solution

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

Successfully merging this pull request may close these issues.

3 participants