YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

This repository does not contain any information.

Nothing here `https://huggingface.co/starsfriday/Qwen-Image-Edit-Remove-Clothes`

Prompt

remove all the clothes of the figure in the picture

Prompt

remove all the clothes of the figure in the picture

Prompt

remove all the clothes of the figure in the picture

This is a model for object removal, trained on Qwen/Qwen-Image-Edit, and it is mainly used to remove clothes from characters.For use in ComfyUI. The greatest advantage of using this LORA is that it maintains the consistency of the original image without changing any parts.

ComfyUI Workflow

This LoRA works with a modified version of Comfy's Qwen-Image-Edit workflow. The main modification is adding a Qwen-Image-Edit LoRA node connected to the base model.

See the Downloads section above for the modified workflow.

from diffusers import QwenImageEditPipeline
import torch
from PIL import Image

# Load the pipeline
pipeline = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit")
pipeline.to(torch.bfloat16)
pipeline.to("cuda")

# Load trained LoRA weights for in-scene editing
pipeline.load_lora_weights("starsfriday/Qwen-Image-Edit-Remove-Clothes",weight_name="qwen-edit-remove-clothes.safetensors")

# Load input image
image = Image.open("./result/test.jpg").convert("RGB")

# Define in-scene editing prompt
prompt = "remove all the clothes of the figure in the picture "

# Generate edited image with enhanced scene understanding
inputs = {
    "image": image,
    "prompt": prompt,
    "generator": torch.manual_seed(12345),
    "true_cfg_scale": 4.0,
    "negative_prompt": " ",
    "num_inference_steps": 50,
}

with torch.inference_mode():
    output = pipeline(**inputs)
    output_image = output.images[0]
    output_image.save("restlt.png")

remove all the clothes of the figure in the picture

There is no fixed trigger word. The specific removal prompt needs to be tested more

Weights for this model are available in Safetensors format.

Download

This model was trained by the AI Laboratory of Chongqing Valiant Cat Technology Co., LTD(https://vvicat.com/).Business cooperation is welcome

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support