Downloads · 30 days
10
4% of all-time downloads
Jaxsavvy/Qwen-Image-Edit-InSubject
Qwen-Image-Edit-InSubject is a image-to-image model from Jaxsavvy. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as apache-2.0.
QwenEdit InSubject is a LoRA fine-tune for QwenEdit that significantly improves its ability to preserve subjects while making edits to images. It works effectively with both single subjects and multiple subjects in th…
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
243
Public
Repo size
170 MB
Likes
1
Public
Click a slice to open those files.
.safetensors148 MB · 88%
From the Hugging Face model README
QwenEdit InSubject is a LoRA fine-tune for QwenEdit that significantly improves its ability to preserve subjects while making edits to images. It works effectively with both single subjects and multiple subjects in the same image. While the base model can perform various image edits, it often loses important subject characteristics or distorts the main subjects during the editing process. This LoRA addresses these limitations to provide more accurate subject-preserving image editing.
<video controls> <source src="sample.mp4" type="video/mp4"> Your browser does not support the video tag. </video>To get the best results, use this prompt format:
Make an image of [subject description] in the same scene [new pose/action/details]
You can include "in the same scene" to preserve the original scene and background while modifying the subject's pose, clothing, or other details.
For example:
Make an image of the horned woman in the same scene seated on a low pink ottoman, adjusting the buckle on one of her matching blue heels while her other leg is delicately crossed, wearing a blue and gold dress with a ruffled collar, red lips and freckles, the vibrant pink background still filling the frame behind her.
import torch
from diffusers import QwenImageEditPipeline
pipe = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit", torch_dtype=torch.bfloat16)
pipe.to("cuda")
pipe.load_lora_weights("peteromallet/Qwen-Image-Edit-InSubject", weight_name="InSubject-0.5.safetensors")
The model excels at:
The model may struggle with:
The QwenEdit InSubject LoRA was trained on a curated dataset of high-quality image editing pairs that focus on subject preservation. You can find this data here.