Skip to content

Commit

Permalink
show grid image
Browse files Browse the repository at this point in the history
  • Loading branch information
ototadana committed Jul 21, 2023
1 parent 6120830 commit b3f03b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/use_cases/image_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def proc_images(self, o: StableDiffusionProcessing, res: Processed, option: Opti
all_prompts.extend(proc.all_prompts)
infotexts.extend(proc.infotexts)

if res.index_of_first_image == 1:
edited_images.insert(0, images.image_grid(edited_images))

if option.show_original_image:
res.images.extend(edited_images)
else:
Expand Down Expand Up @@ -279,7 +282,7 @@ def __show_detected_faces(self, entire_image: np.ndarray, faces: List[Face], p:
face.top : face.bottom,
face.left : face.right,
] = face_image
return self.__add_comment(entire_image, f"{len(faces)}")
return Image.fromarray(self.__add_comment(entire_image, f"{len(faces)}"))

def __get_wildcards_script(self, p: StableDiffusionProcessingImg2Img):
if p.scripts is None:
Expand Down

0 comments on commit b3f03b2

Please sign in to comment.