PS - Photoshop 抠图与剪贴蒙版功能与 Stable Diffusion 重绘

欢迎关注我的CSDN:https://spike.blog.csdn.net/

本文地址:https://spike.blog.csdn.net/article/details/131978632

Photoshop 的剪贴蒙版是一种将上层图层的内容限制在下层图层的形状范围内的方法,也就是说,上层图层只能在下层图层的可见区域显示,而下层图层则相当于一个模板或遮罩,这样可以实现一些特殊的效果,比如将图片填充到文字、形状或笔刷中,或者创建半透明的光晕等。

SD 替换背景之后的图像:

原始图像:1080x1345

系统:macOS

使用 PS 新建图层快捷键是 Command + Shift + N,或者点击右下角,即:

修改图像和画布尺寸:

  • 修改图像大小,快捷键是 Command + Option + I1080x1345修改成 1024x1275
  • 修改画布大小,快捷键是 Command + Option + C1024x1275 修改成 1024x1024,就会剪切图像,即:

修改图像区域:

  • 使用 快捷键是 键盘中的 V,移动工具,即可拖动图像,选择合适的区域。
  • 使用 Command + T,自由变换(编辑),即可缩放图像,选择居中人物信息。

即:

使用 对象选择工具,快捷键是 键盘中的 W,对象选择工作,选择图层,即:

使用 Command + CCommand + V 复制图层。

再选择 橡皮擦工具快捷键 E,修改图像,调整橡皮擦的尺寸,橡皮擦的放大缩小,快捷键分别是 大右括号 [大左括号键 ],去除残留的背景,即:

Command +(加号)Command -(减号) 是放大和缩小图像

再新建图层,重命名为蒙版,右键选择 创建剪贴蒙版,打开图层创建剪贴蒙版,快捷键为 Option + Command +G

使用 矩形工具快捷键 U,画一个矩形,自动创建蒙版,即:

支持使用移动工具(V),可以左右拉选,即:

选择不同的图层,导出图像,即可,默认导出 JPEG是白底黑前 ,导出PNG是透明图像。如果反向修改 (黑底白前),需要修改蒙版颜色为白色,图层填充颜色为黑色,修改图层颜色的快捷键是 Shift + F5,即 编辑 - 填充,即:

再使用 SD 生成背景效果,示例:

最后,使用 ControlNet - Tile 进行重绘,主要要调低 重绘幅度0.2,保留更多原图细节,这样解决边缘的不自然问题。

((masterpiece)),raw photo,(photo realistic:1.2),(extremely detailed),high detail,sharp focus,

1girl,aurora,blonde hair,city lights,constellation,earth (planet),galaxy,glowing,light particles,long hair,long sleeves,looking at viewer,milky way,night,night sky,no pants,planet,realistic,red lips,shooting star,sky,sleeves past wrists,solo,space,space craft,standing,star (sky),star (symbol),starry background,starry sky,starry sky print,

(colorful explosion psychedelic paint colors:1.25)::0.25\], lora:more_details:1.2, Negative prompt: (badhandv4:1.2),(ng_deepnegative_v1_75t, bad_prompt_version2-neg, EasyNegative:0.9), (worst quality, low quality:1.3),(depth of field, blurry:1.2),(greyscale, monochrome:1.1),croped,lowres,text,jpeg artifacts,(logo,signature,watermark,username,artist name,title:1.3), Steps: 32, Sampler: DDIM, CFG scale: 7, Seed: 2721619358, Size: 2160x2160, Model hash: e4a30e4607, Model: 麦橘写实_MajicMIX_Realistic_v6, Denoising strength: 0.2, Clip skip: 2, ControlNet 0: "preprocessor: tile_resample, model: control_v11f1e_sd15_tile \[a371b31b\], weight: 1, starting/ending: (0, 1), resize mode: Crop and Resize, pixel perfect: True, control mode: ControlNet is more important, preprocessor params: (-1, 1, -1)", Lora hashes: "more_details: 3b8aa1d351ef", Version: v1.4.0

参考:泫雅近日短裙造型

相关推荐
wei_shuo1 天前
GpuGeek 实操指南:So-VITS-SVC 语音合成与 Stable Diffusion 文生图双模型搭建,融合即梦 AI 的深度实践
人工智能·stable diffusion·gpu算力·gpuseek
这是一个懒人3 天前
Stable Diffusion WebUI 插件大全:功能详解与下载地址
stable diffusion
浪淘沙jkp3 天前
AI大模型学习十八、利用Dify+deepseekR1 +本地部署Stable Diffusion搭建 AI 图片生成应用
人工智能·stable diffusion·agent·dify·ollama·deepseek
Icoolkj4 天前
深入了解 Stable Diffusion:AI 图像生成的奥秘
人工智能·stable diffusion
这是一个懒人4 天前
mac 快速安装stable diffusion webui
macos·stable diffusion
璇转的鱼5 天前
Stable Diffusion进阶之Controlnet插件使用
人工智能·ai作画·stable diffusion·aigc·ai绘画
AloneCat20126 天前
stable Diffusion模型结构
stable diffusion
西西弗Sisyphus6 天前
Stable Diffusion XL 文生图
stable diffusion
霍志杰7 天前
stable-diffusion windows本地部署
windows·stable diffusion
昨日之日20067 天前
ACE-Step - 20秒生成4分钟完整歌曲,音乐界的Stable Diffusion,支持50系显卡 本地一键整合包下载
计算机视觉·stable diffusion·音视频