tarn59/apply_texture_qwen_image_edit_2509_dataset
Viewer • Updated • 1.16k • 71
How to use tarn59/apply_texture_qwen_image_edit_2509 with Diffusers:
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("Qwen/Qwen-Image-Edit-2509", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("tarn59/apply_texture_qwen_image_edit_2509")
prompt = "Apply wood siding texture to building walls."
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]

Apply textures to objects, buildings, and sprites. Motivated by a discussion with an ads company that uses textures to force assets to take a similar style. Free for all to use.
Prompt: Apply {texture description} texture to {optional qualifier (left, right, front, back)} object or thing. Example: Apply crochet texture to all the trees.
Works with recursion as well
Prompt: Apply the woman holding a sign texture to the white sign. The sign should show a woman holding a sign that sign should show a woman holding a sign.
You should use Apply ... texture to ... to trigger the image generation.
Download them in the Files & versions tab.
Base model
Qwen/Qwen-Image-Edit-2509