Instructions to use prithivMLmods/QIE-2511-Zoom-Master with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prithivMLmods/QIE-2511-Zoom-Master 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-2511", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("prithivMLmods/QIE-2511-Zoom-Master") prompt = "Turn this cat into a dog" 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
Size output
#2
by SOleLuch - opened
Hi! Thank you for your work. I have a question about the output image. Does it need to be the same size as the input image, or did you train the LoRa model so that the zoomed-in image maintains a specific aspect ratio?
@SOleLuch
It is expected to work fine with variable aspect ratios on image inputs, and yes, the part of the scale you choose in the input image will be zoomed in and result in the same aspect ratio as the image.
And it is trained that way.
prithivMLmods changed discussion status to closed