How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("xiaolxl/HXHY-Takeclothes-KontextLoRA", dtype=torch.bfloat16, device_map="cuda")

prompt = "Turn this cat into a dog"
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")

image = pipe(image=input_image, prompt=prompt).images[0]

对比图(Comparison chart): a1.png

幻象绘影取衣去人-TakeclothesKontextLoRA。用于各类图片的人物去除并保留服装。

权重:建议值1.0。

触发词:Remove the characters, keep the clothing

通用工作流:https://civitai.com/models/1733176/fluxkontextdev-lora-general-workflow

自动大小通用工作流:https://civitai.com/models/1733187/fluxkontextdev-lora-general-workflow-auto-size-fluxkontextdev-lora

=======

幻象绘影取衣去人-TakeclothesKontextLoRA。Used for removing people from various types of images while retaining clothing.

Weight: Recommended value 1.0.

Trigger word: Remove the characters, keep the clothing

General workflow:https://civitai.com/models/1733176/fluxkontextdev-lora-general-workflow

Auto-size Universal Workflow:https://civitai.com/models/1733187/fluxkontextdev-lora-general-workflow-auto-size-fluxkontextdev-lora

Downloads last month
19
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support