Q版二次元(偏点写实)人物 AI图生图流程

此教程可能已经过时,参考流程步骤即可

写在前面:机器GPU为RTX3090、A5000

正向(女生)

masterpiece, best quality, (illustration:1.2),1girl,kid,loli,hand up,Child body,short body,( body:1.2)Child stature, purple hair,cute ,(White background(keynote):2.0),full body,looking at viewer,purple clothes,Rich Colors,hand up,cute,hair style,thigh,dynamic actions,blue eyes, parted lips,long hair,large hair accessories,beautifully painted,strong light,8K, + Tag反推

正向(男生)

chinese clothes,masterpiece, best quality, (illustration:1.2),1boy,boy face,kid,hand up,Child body,short body,( body:1.2)Child stature, black hair,young cute boy,cute ,(White background(keynote):2.0),full body,looking at viewer,red clothes,Rich Colors,hand up,cute,dynamic actions,(blue eyes:1.4), parted lips,beautifully painted,strong light,8K, tassels,white background,,wide sleeves + Tag反推

反向

(((blur))), (EasyNegative:1.2), ng_deepnegative_v1_75t, paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), bad anatomy,(long hair:1.4),DeepNegative,(fat:1.2),facing away, looking away,tilted head,lowres,bad anatomy,bad hands, text, error, missing fingers,extra digit, fewer digits, cropped, worstquality, low quality, normal quality,jpegartifacts,signature, watermark, username,blurry,bad feet,cropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,extra fingers,fewer digits,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands,polar lowres,bad body,bad proportions,gross proportions,text,error,missing fingers,missing arms,missing legs,extra digi,

流程

依据参数先跑一批选一个生成结果相对较好的图,如果生成结果未达到词条效果请调整词条先后顺序或提高权重
Sampler: DPM++ SDE Karras
Size: 800x800
Model hash: 6e430eb514
Model: anything-v4.5-pruned
Denoising strength: 0.5(非模板)0.8(有模板,用于同姿势同一人物下,需要更换人物衣服)
SD VAE: kl-f8-anime
挑选到图后调整到新的参数,将图片进行放大(目的是为了能绘制更多的细节)
Sampler: DPM++ SDE Karras
Size: 800x800
Model hash: cbfba64e66
Model:  Counterfeit-V3.0_fp16
Denoising strength: 0.5
SD VAE: Anything-V3.0
Mask blur: 4
SD upscale overlap: 64
SD upscale upscaler: R-ESRGAN 4x+ Anime6B

然后把图片调整到【局部重绘】,重绘脸部(Tips:大小需要能被8整除,否则会报错:图像不匹配) 蒙版模式:重绘蒙版内容 image.png

脸部重绘到满意后以这张图为基础,遮住脸(如果手也ok把手也遮住,不行就重绘直到ok再遮住)开始重绘除了脸意外的内容提高细节 Sampler: DPM++ SDE Karras Size: 1600x1600 Model hash: 303166bf7f Model: NyanMix SD VAE: kl-f8-anime Denoising strength: 0.4 细节增加到差不多后,需要用转转变模型抹平NyanMix带来的一些花里胡哨的效果,让整体效果更加平滑 Sampler: DPM++ SDE Karras Size: 1600x1600 Model hash: 6e430eb514 Model: anything-v4.5-pruned SD VAE: Anything-V3.0 Denoising strength: 0.4 大概2~3次后效果差不过就可以了,然后保存最后的图,用PS修一下剩下的杂乱的小细节跟背景,裁切一下主要部分 # 成品图 image.png

同图换衣服

参数如下

Sampler: DPM++ SDE Karras
Size: 800x800
Model hash: 6e430eb514
Model: anything-v4.5-pruned
SD VAE: kl-f8-anime
Denoising strength: 0.8

1、首先解析上一张图的OpenPose,保存 2、然后在原本图生图-局部重绘的基础上加上刚才的pose,涂掉脸跟手,然后选一张自己喜欢的(参数如上) 3、用如下参数多跑几次把脸跟手融入新的图片中(这一步可以取消OpenPose,参数如下) [第2步图] image.png

Sampler: DPM++ SDE Karras
Size: 800x800
Model hash: 6e430eb514
Model hash: 303166bf7f
Model: NyanMix
SD VAE: kl-f8-anime
Denoising strength: 0.2

到这里,已经生成好新的衣服且把脸跟手融合进新的图片了 image.png 然后把图片脸手遮住,蒙版模式选为【非蒙版内容】用SD放大,参数如下

Sampler: DPM++ SDE Karras
Size: 864x864
Model hash: 6e430eb514
Model: anything-v4.5-pruned
SD VAE: kl-f8-anime
Denoising strength: 0.5
Mask blur: 4
SD upscale overlap: 64
SD upscale upscaler: R-ESRGAN 4x+ Anime6B

放大后使用以下参数开始做细化,大概2~3次左右即可

Sampler: DPM++ SDE Karras
Size: 1600x1600
Model hash: 303166bf7f
Model: NyanMix
SD VAE: kl-f8-anime
Denoising strength: 0.4

image.png 由于NyanMix会把背景画的很乱,这个时候要更换模型去掉这些杂乱的背景跟削弱一些细节,参数如下

Sampler: DPM++ SDE Karras
Size: 1600x1600
Model hash: 6e430eb514
Model: anything-v4.5-pruned
SD VAE: kl-f8-anime
Denoising strength: 0.4

抹平2次后更换Vae在抹平1~2次

Sampler: DPM++ SDE Karras
Size: 1600x1600
Model hash: 6e430eb514
Model: anything-v4.5-pruned
SD VAE: Anything-V3.0
Denoising strength: 0.4

最后处理一下背景就OK了

成品

image.png

消息盒子

# 暂无消息 #

只显示最新10条未读和已读信息