Stable Diffusion Web UI - ControlNet 边缘特征提取 CANNY
CANNY 是 ControlNet 常用的处理器之一,Canny 通过对图像进行边缘检测提取主要的轮廓,适用于需要保持原始图像结构的生成场景。
通过 Canny 提取的轮廓信息,可以用于线稿填色,真人漫改等场景。
通过 Canny 能够得到类似如下图的结果:
canny 默认只有一种风格处理器,不过可以通过控制高低阈值来控制边缘特征提取的程度。
动漫线稿3D上色
线稿原图如下
图片参数配置如下:
a girl,
cute,
8k
Steps: 30, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 7, Seed: 2124461595, Size: 512x728, Model hash: 7c819b6d13, Model: majicMIX realistic 麦橘写实_v7, Denoising strength: 0.7, ControlNet 0: "Module: canny, Model: control_v11p_sd15_canny [d14c016b], Weight: 1.0, Resize Mode: Crop and Resize, Processor Res: 512, Threshold A: 100.0, Threshold B: 18.0, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: True, Control Mode: Balanced", Hires upscale: 2, Hires upscaler: Latent, Version: v1.9.4
生成效果图如下
真人漫改
真人原图如下
图片参数配置如下
a girl,
sex
Steps: 30, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 7, Seed: 1373054038, Size: 512x728, Model hash: 7f0a0410cf, Model: fcanimemixFcAnime_fcanimeV6, Denoising strength: 0.7, ControlNet 0: "Module: canny, Model: control_v11p_sd15_canny [d14c016b], Weight: 1.0, Resize Mode: Crop and Resize, Processor Res: 512, Threshold A: 100.0, Threshold B: 200.0, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: False, Control Mode: Balanced", Hires upscale: 2, Hires upscaler: Latent, Version: v1.9.4
生成效果图如下
提示词调整,可爱风(cute),性感风(sex) 可以变更图片风格。