Downloads · 30 days
1.3K
6% of all-time downloads
prithivMLmods/Qwen-Image-Edit-Rapid-AIO-V4
Qwen-Image-Edit-Rapid-AIO-V4 is a image-to-image model from prithivMLmods. 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.
Diffusers-compatible transformer weights extracted from Phr00t/Qwen-Image-Edit-Rapid-AIO-V4 for 4-step accelerated Qwen Image Edit inference.
Downloads · 30 days
1.3K
6% of all-time downloads
All-time downloads
22.8K
Public
Parameters
20.4B
20.4 GB on disk
Likes
6
Public
Click a slice to open those files.
.safetensors20.4 GB · 100%
From the Hugging Face model README
Diffusers-compatible transformer weights extracted from Phr00t/Qwen-Image-Edit-Rapid-AIO-V4 for 4-step accelerated Qwen Image Edit inference.
pip install -U torch transformers diffusers
import torch
from diffusers.models import QwenImageTransformer2DModel
from diffusers import QwenImageEditPlusPipeline
from diffusers.utils import load_image
transformer = QwenImageTransformer2DModel.from_pretrained(
"prithivMLmods/Qwen-Image-Edit-Rapid-AIO-V4",
torch_dtype=torch.bfloat16
)
pipeline = QwenImageEditPlusPipeline.from_pretrained(
"Qwen/Qwen-Image-Edit-2511", # (or) 2509
transformer=transformer,
torch_dtype=torch.bfloat16
)
pipeline.to("cuda")
image1 = load_image("grumpycat.png")
prompt = "turn the cat into an orange cat"
inputs = {
"image": [image1],
"prompt": prompt,
"generator": torch.manual_seed(42),
"true_cfg_scale": 1.0,
"negative_prompt": " ",
"num_inference_steps": 4,
"guidance_scale": 1.0,
"num_images_per_prompt": 1,
}
output = pipeline(**inputs)
output_image = output.images[0]
output_image.save("output_image_edit_plus.png")