ototadana / sd-face-editor

Face Editor for Stable Diffusion
MIT License
1.03k stars 86 forks source link

May I ask why it doesn't work in img2img? #151

Closed snowsakuraa closed 1 year ago

snowsakuraa commented 1 year ago

It works fine in any situation. Except in img2img. It will say 0 faces recognized. Even adjusting the plugin parameters doesn't fix it.

ototadana commented 1 year ago

What if the following image is used as input? https://raw.githubusercontent.com/ototadana/sd-face-editor/main/images/deno-4.jpg

I am able to detect it and the result is as follows.

image

smile
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 1384607815, Size: 512x512, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, Denoising strength: 0, face_editor_enabled: True, face_editor_face_margin: 1.6, face_editor_confidence: 0.97, face_editor_strength1: 0.4, face_editor_strength2: 0, face_editor_max_face_count: 20, face_editor_mask_size: 0, face_editor_mask_blur: 12, face_editor_prompt_for_face: "", face_editor_apply_inside_mask_only: True, face_editor_apply_scripts_to_faces: False, face_editor_face_size: 512, face_editor_use_minimal_area: False, face_editor_ignore_larger_faces: True, face_editor_affected_areas: Face, face_editor_workflow: "{\n \"face_detector\": \"RetinaFace\",\n \"rules\": {\n \"then\": {\n \"face_processor\": \"img2img\",\n \"mask_generator\": {\n \"name\": \"BiSeNet\",\n \"params\": {\n \"fallback_ratio\": 0.1\n }\n }\n }\n }\n}", face_editor_upscaler: None, face_editor_tilt_adjustment_threshold: 40, Version: v1.5.1-459-ge56b7c84

I hope this information helps you.