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

参考:泫雅近日短裙造型

相关推荐
UTwelve1 天前
【UE】SDF - 使用有向距离场(Signed Distance Fields)整各种活-4-将图片制作为距离场图
ue5·photoshop·贴图·着色器
AI成长日志1 天前
【GitHub开源项目专栏】扩散模型开源项目深度解析:Stable Diffusion与ControlNet架构全景
stable diffusion·开源·github
星竹长2 天前
关闭 win版 adobe 的未授权弹窗“This unlicensed Adobe app has been disabled”
adobe·photoshop
白狐_7982 天前
【实战架构】一人抵一家设计公司:基于 ComfyUI + Python RPA + Photoshop 的全自动化工业制图工作流
python·photoshop·rpa
一个没有本领的人3 天前
win11配置Stable-diffusion-1.5
stable diffusion
AI成长日志4 天前
【扩散模型专栏】文本到图像生成实战:Stable Diffusion架构解析与代码实现
人工智能·stable diffusion·架构
Shining05967 天前
AI 编译器系列(六)《Stable Diffusion 在 InfiniTensor 推理框架中的适配与工程实践》
人工智能·算法·stable diffusion·大模型·图像生成·ai编译器·infinitensor
NGBQ121388 天前
Adobe-Photoshop-2026-27.4.0.15-m0nkrus 全解析:专业图片处理软件深度指南
ui·adobe·photoshop
okra-11 天前
Axure RP 10 进阶指南:从全局变量到JavaScript语法,打造高效原型设计!
javascript·axure·photoshop
真的是小恐龙吗?15 天前
PS中如何将png图片中的字体颜色改为指定颜色
photoshop