Instructions to use ovi054/QIE-2511-Draw2Photo-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ovi054/QIE-2511-Draw2Photo-LoRA 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("ovi054/QIE-2511-Draw2Photo-LoRA") 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
- Draw Things
| base_model: Qwen/Qwen-Image-Edit-2511@master | |
| license: Apache License 2.0 | |
| tags: | |
| - LoRA | |
| - text-to-image | |
| tasks: | |
| - text-to-image-synthesis | |
| trigger_words: | |
| - make it real | |
| vision_foundation: QWEN_IMAGE_20_B | |
| #model-type: | |
| ##such as gpt、phi、llama、chatglm、baichuan, etc. | |
| #- gpt | |
| #domain: | |
| ##such as nlp、cv、audio、multi-modal, etc. | |
| #- nlp | |
| #language: | |
| ##language code list https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa | |
| #- cn | |
| #metrics: | |
| ##such as CIDEr、Blue、ROUGE, etc. | |
| #- CIDEr | |
| #tags: | |
| ##various custom tags, including pretrained, fine-tuned, instruction-tuned, RL-tuned, and others | |
| #- pretrained | |
| #tools: | |
| ##such as vllm、fastchat、llamacpp、AdaSeq, etc. | |
| #- vllm | |
| ### You are viewing the default Readme template as no detailed model-card was provided by the model’s contributors. You can access the model files in the "Files and versions" tab. | |
| #### Model files may be downloaded with ModelScope SDK or through git clone directly. | |
| Download with ModelScope’s Python SDK | |
| ```bash | |
| #Install ModelScope | |
| pip install modelscope | |
| ``` | |
| ```python | |
| #Download with ModelScope’s Python SDK | |
| from modelscope import snapshot_download | |
| model_dir = snapshot_download('ovi054/draw2photo') | |
| ``` | |
| Download with Git clone | |
| ``` | |
| git clone https://www.modelscope.ai/ovi054/draw2photo.git | |
| ``` | |
| <p style="color: lightgrey;">If you are a contributor to this model, we invite you to promptly update the model card content according to <a href="https://www.modelscope.ai/docs/contribute/model-integration" style="color: lightgrey; text-decoration: underline;">the model contribution documentation</a>.</p> |