Before (clothed) / After (unclothed)
详情
下载文件
模型描述
你好!(有关 V2 的详细信息,请参阅下方绿色部分。)
这是一个 LoRA,旨在在同一张图像中通过一条垂直线分隔出穿着/未穿着衣物的女性图像。
它无法将现有的人物图片“脱衣”,因为它会同时生成穿着和未穿着的部分。
该 LoRA 专为真实的 SDXL 检查点设计,因为我的所有数据集均来自真实照片。但该 LoRA 似乎也能与动漫风格的检查点配合使用(效果有些不可预测),甚至能与 Pony 模型配合使用(效果更不可预测,如示例图像所示)。
如果你想在动漫检查点中使用此概念,可以尝试以下 LoRA(非我制作,我尚未测试过):/model/522623/before-and-after
编辑:我真蠢,我在制作这个 LoRA 之前没在 CivitAI 上搜索过其他类似的 LoRA……现在你可以在本描述底部找到其他链接,其中一些可能比我的效果更好。
我的 LoRA 并不完美:垂直线有时会显得奇怪,帧数也不总是遵循提示。你可能需要多次尝试不同种子。此外,提示中应包含一些特定词语。
以上所有图像均使用 ADetailer 处理面部,其他部分未作处理(手部常常表现异常)。如果你使用相同的提示、种子和参数,应能获得与我相同的图像。
V2:混乱的屏幕截图
这个版本似乎相当不稳定,我对它并不满意。但我未来几周可能无法继续调整,所以还是发布出来。
我在数据集中添加了带有 "movie_screencap" 标签的图片。这个标签可能是 V2 的主要新增内容。你可以尝试使用如下格式:
"beforafter, 2frames, movie_screencap, amateur, photo of [...]"
对我来说,这个标签似乎能产生有趣的结果,建议你尝试使用。
我意外发现,"movie_screencap" 标签与 "amateur" 标签配合效果不错。
(示例图片使用 ADetailer(face_yolov8n)生成,未做其他处理。)
新数据集中人物的羞涩感略有增加:如果你使用 "movie_screencap" 标签,角色可能会显得更尴尬。你可以添加类似 "she is smiling" 或 "looking seductively at the camera" 来改善效果。
此外,"embarrassed" 标签通常会导致手部反应不可预测,比如遮挡胸部/阴道、手放至身后、肩上或其他奇怪位置。我尝试添加了 "covering vagina"、"covering breasts" 等标签,但最终图像很少按预期呈现,尤其是因为手和手指表现很差。
"hands behind her back"、"hands on her hips"(以及 "hands behind her head")这些标签通常效果较好,你可能需要尝试多个种子才能获得理想结果,对此表示歉意!
我在数据集中增加了许多 "3frames" 图像。在 V1 中,LoRA 会极力生成仅含 2 帧的图像,因此很难获得 3 帧,但 2 帧很容易;而在 V2 中,"2frames" 提示有时会生成 3 帧图像,但 "3frames" 提示更常生成 3 帧图像。我认为整体上更好了。("4frames" 仍常与 "3frames" 混淆。)
我在本页末尾也添加了一些新的提示示例。
祝你玩得愉快!
提示词使用说明:
激活标签为:beforafter
你还应添加 [帧数]。例如:"2frames" 是最安全的选择。我尝试让 LoRA 支持 "3frames"、"4frames" 甚至 "5frames",但很少能按提示准确生成。
我的数据集构建方式如下(如果你遵循此结构,可能获得更佳效果):
一位 [年龄] 女性的照片(或自拍),拥有 [长度和颜色] 的头发
她穿着 [上衣] 和 [下装]
(稀少/浓密)阴毛 / 剃除的阴毛
她 [站立 / 坐着] [描述],面对 [背景]
“自拍模式”可添加的特殊词: "she is holding a [颜色] phone"(以及必要时)"she is looking at her phone"。
此外,你还可以使用:
"[amateur / professional]",可调整图像质量
"photo flash",尤其与 "amateur" 和 "selfie" 标签配合使用
"same pose before/after",若希望背景一致,这似乎能(显著)提升效果。
"chest tanlines", "pubic tanlines"
"bracelet", "navel piercing", "earrings", "ring", "necklace" 等标签似乎有效,但结果仍较不可预测:例如使用 "bracelet",角色可能戴着手镯、两只手表或其他饰品……
使用 "portrait" 或 "close-up portrait" 替代 "photo"。此时,若你只想要上半身图像,可添加类似 "pretty face" 或眼睛颜色的描述,引导模型聚焦于面部,不要提及裤子、腿部或脚部。
(我曾尝试让 LoRA 学习类似 "she is looking seductively at the camera"、"she is shyly smiling"、"looking cute" 等描述,但效果不佳,建议你可忽略它们。)
抱歉,这看起来有些复杂。当然,除了 "beforafter" 和 "_number__frames" 之外,其他都不是必需的。从示例图片可见,仅用 "beforafter, 2frames, a pretty woman is sitting on the train" 也能获得不错的效果。
一些示例:
"beforafter, 2frames, selfie of a 25 years-old woman with medium black hair with two short braids, she is wearing a short blue dress with white flowers drawn on it, shaved pubes, holding a grey phone, she is looking at her phone, she is smiling shyly, looking cute, she is standing in her bedroom in front of her bed"
"beforafter, 2frames, amateur, photo of a 25 years-old woman with tied black hair, she is wearing a brown sleeveless top with grey shorts, pale skin, she is standing outside next to black waters in front of a waterfall, pubic hair, earrings, she looks like Lara Croft from Tomb Rider"
"beforafter, 2frames, amateur, close-up portrait of a 28 years-old woman with long blonde hair, pretty face, photo flash, in her living room, she is wearing a white top with a batman symbol on it"
"beforafter, 3frames, photo of a 23 years-old woman with very long blonde hair, she is wearing a red t-shirt with short blue hotpants, shaved pubes, same pose before/after, she has big breasts with pale erect nipples, she is standing in front of blue curtains, chest tanlines, necklace, various facial expressions" (可能无法获得三个完美帧)
"beforafter, 3frames, photo of a 26 years-old woman with medium black hair, asian woman, she is wearing a white skirt and a white sleveless top, she is in her living room next to a glass table, photo flash, abundant black pubic hair, she has brown nipples" (同上)
"beforafter, 2frames, photo of a 32 years-old woman with medium black hair, Asian woman, she is wearing a white dress, pink bench, small breasts, pubic hair, she is smiling to the camera"
(V2):"beforafter, 3frames, movie_screencap, amateur, close photo of a 37 years-old woman with long black hair, she is wearing a pink shirt with short sleeves and a beige skirt, pubic hair, she has big breasts with pale nipples, she is standing in her living-room in front of a white wall next to a brown sofa, embarrassed, earrings"
(V2):"beforafter, 2frames, movie_screencap, amateur, close portrait of a 44 years-old woman with long black hair, she is wearing a grey shirt with a white long skirt, covering vagina, she is standing in in front of a white door next to a beige wall, embarrassed"
你可以在 CivitAI 上找到的其他类似 LoRA:
/model/487151/front-unclothed-x-steps(适用于 SDXL)
/model/568803/front-unclothed-x-steps(适用于 Pony)
/model/69576/onoff-concept-fantasy-konyconi , /model/14502/cloth-uncloth-lora , /model/42214/onoff-onoff-lora , /model/42370/concept-onoff 和 /model/10703/clothed-vs-unclothed(适用于 SD1.5)
/model/776854/on-off-for-flux 和 /model/649762/onoff-for-flux-onoff(适用于 Flux)















