Stable Diffusion——Adetailer面部处理
下载地址:
GitHub - Bing-su/adetailer: Auto detecting, masking and inpainting with detection model.
修复介绍:
具体的得根据实际情况进行选择。
模型 | 适用对象 |
face_yolov8n.pt | 2D / 真实人脸 |
face_yolov8s.pt | 2D / 真实人脸 |
hand_yolov8n.pt | 2D / 真实人手 |
person_yolov8n-seg.pt | 2D / 真实全身 |
person_yolov8s-seg.pt | 2D/真实全身 |
mediapipe_face_full | 真实人脸 |
mediapipe_face_short | 真实人脸 |
mediapipe_face_mesh | 真实人脸 |
测试语句:
正向:
Star face,long black hair,beauty,wearing a white shirt,upper body frontal photo,ultra-clear,cute,lolita,natural black pupils,bright eyes,Chinese style,well-proportioned,regular facial features,no stretching,first love,light blue Color background,tie,campus,desks and chairs,school uniform,long hair to waist,smile,dimples,
反向:
(semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4),text,close up,cropped,out of frame,worst quality,low quality,jpeg artifacts,pgly,duplicate,morbid,mutilated,extra fingers,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,dehydrated,bad anatomy,bad proportions,extra limbs,cloned face,disfigured,gross proportions,malformed limbs,missing arms,missing legs,extra arms,extra legs,fused fingers,too many fingers,long neck,
正向和反向提示词设置,和SD的提示词设置成一样就可以了。
可以保留种子,更换一下模型来重新生成一下:全身的效果太僵硬了。
动一动的效果:
种子号码:1210515140
所有参数:
Star face,long black hair,beauty,wearing a white shirt,upper body frontal photo,ultra-clear,cute,lolita,natural black pupils,bright eyes,Chinese style,well-proportioned,regular facial features,no stretching,first love,light blue Color background,tie,campus,desks and chairs,school uniform,long hair to waist,smile,dimples,
Negative prompt: (semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4),text,close up,cropped,out of frame,worst quality,low quality,jpeg artifacts,pgly,duplicate,morbid,mutilated,extra fingers,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,dehydrated,bad anatomy,bad proportions,extra limbs,cloned face,disfigured,gross proportions,malformed limbs,missing arms,missing legs,extra arms,extra legs,fused fingers,too many fingers,long neck,
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 1210515140, Size: 512x512, Model hash: 18ed2b6c48, Model: xxmix9realistic_v40, AnimateDiff: "enable: True, model: mm_sd_v15_v2.ckpt, video_length: 16, fps: 8, loop_number: 0, closed_loop: R-P, batch_size: 16, stride: 1, overlap: 4, interp: Off, interp_x: 10, mm_hash: 69ed0f5f", ADetailer model: mediapipe_face_full, ADetailer prompt: "Star face,long black hair,beauty,wearing a white shirt,upper body frontal photo,ultra-clear,cute,lolita,natural black pupils,bright eyes,Chinese style,well-proportioned,regular facial features,no stretching,first love,light blue Color background,tie,campus,desks and chairs,school uniform,long hair to waist,smile,dimples,", ADetailer negative prompt: "(semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4),text,close up,cropped,out of frame,worst quality,low quality,jpeg artifacts,pgly,duplicate,morbid,mutilated,extra fingers,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,dehydrated,bad anatomy,bad proportions,extra limbs,cloned face,disfigured,gross proportions,malformed limbs,missing arms,missing legs,extra arms,extra legs,fused fingers,too many fingers,long neck,", ADetailer confidence: 0.3, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.4, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 23.11.1, Version: v1.6.0-2-g4afaaf8aTime taken: 1 min. 36.3 sec.
A: 5.02 GB, R: 5.58 GB, Sys: 5.7/14.5791 GB (39.3%)