Instructions to use tarn59/book_flatten_and_crop_qwen_image_edit_2509 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tarn59/book_flatten_and_crop_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/book_flatten_and_crop_qwen_image_edit_2509") prompt = "flatten and crop the book image, remove the middle crease, zoom in" 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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Book Flatten and Crop

- Prompt
- flatten and crop the book image, remove the middle crease, zoom in

- Prompt
- flatten and crop the book image, remove the middle crease, zoom in

- Prompt
- flatten and crop the book image, remove the middle crease, zoom in
Model description
Flattens, crops and merges images that are split between 2 pages. User will need to play around with aspect ratio and resolution to get it right (different books have different aspect ratios). Works well with https://huggingface.co/Osrivers/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors/tree/main and https://huggingface.co/eigen-ai-labs/eigen-banana-qwen-image-edit for speed and color accuracy.
Trigger words
You should use flatten and crop the book image to trigger the image generation.
You should use remove the middle crease to trigger the image generation.
You should use zoom in to trigger the image generation.
Download model
Download them in the Files & versions tab.
- Downloads last month
- 27
Model tree for tarn59/book_flatten_and_crop_qwen_image_edit_2509
Base model
Qwen/Qwen-Image-Edit-2509