Text-to-Image
Pruna AI
English
qwen
qwen-image
image-generation
image-editing
decoder-free
vae-free
dwd
Instructions to use PrunaAI/P-Q-Image-2.1-DWD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pruna AI
How to use PrunaAI/P-Q-Image-2.1-DWD with Pruna AI:
from pruna import PrunaModel model = PrunaModel.from_pretrained("PrunaAI/P-Q-Image-2.1-DWD") - Notebooks
- Google Colab
- Kaggle
Download assets/examples/examples.json from PrunaAI/P-Q-Image-2.1-DWD: direct link, hf CLI and curl.
- Browser
- Download file 2.79 kB
-
https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/assets/examples/examples.json
- Command line
-
hf download hf://PrunaAI/P-Q-Image-2.1-DWD/assets/examples/examples.json
-
curl -L -o examples.json https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/assets/examples/examples.json
2.79 kB
| { | |
| "t2i_2k": [ | |
| { | |
| "file": "t2i_0.jpg", | |
| "prompt": "a close-up portrait of an elderly fisherman with a grey beard, soft window light, 85mm photo", | |
| "width": 2048, | |
| "height": 2048, | |
| "seed": 2000, | |
| "psnr_db": 34.71, | |
| "lpips_vgg": 0.04676 | |
| }, | |
| { | |
| "file": "t2i_1.jpg", | |
| "prompt": "bird of paradise flower", | |
| "width": 2528, | |
| "height": 1696, | |
| "seed": 2001, | |
| "psnr_db": 39.67, | |
| "lpips_vgg": 0.02724 | |
| }, | |
| { | |
| "file": "t2i_2.jpg", | |
| "prompt": "a red fox standing in fresh snow at sunrise, professional wildlife photograph", | |
| "width": 1696, | |
| "height": 2528, | |
| "seed": 2002, | |
| "psnr_db": 33.2, | |
| "lpips_vgg": 0.0474 | |
| }, | |
| { | |
| "file": "t2i_3.jpg", | |
| "prompt": "a purple and white ice cream shop with a purple and white striped awning", | |
| "width": 2752, | |
| "height": 1536, | |
| "seed": 2003, | |
| "psnr_db": 34.66, | |
| "lpips_vgg": 0.04545 | |
| }, | |
| { | |
| "file": "t2i_4.jpg", | |
| "prompt": "a futuristic city street after rain with neon reflections, cinematic film still", | |
| "width": 1536, | |
| "height": 2752, | |
| "seed": 2004, | |
| "psnr_db": 35.37, | |
| "lpips_vgg": 0.04529 | |
| }, | |
| { | |
| "file": "t2i_5.jpg", | |
| "prompt": "a stone wall with plants and flowers in it", | |
| "width": 2048, | |
| "height": 2048, | |
| "seed": 2005, | |
| "psnr_db": 29.67, | |
| "lpips_vgg": 0.06644 | |
| } | |
| ], | |
| "edit_1mp": [ | |
| { | |
| "file": "edit_0.jpg", | |
| "instruction": "Turn this photo into a watercolor painting with soft washes and visible paper texture.", | |
| "width": 1344, | |
| "height": 768, | |
| "seed": 3000, | |
| "psnr_db": 31.17, | |
| "lpips_vgg": 0.05884 | |
| }, | |
| { | |
| "file": "edit_1.jpg", | |
| "instruction": "Make it look like a faded vintage 1970s photograph.", | |
| "width": 1152, | |
| "height": 896, | |
| "seed": 3001, | |
| "psnr_db": 33.25, | |
| "lpips_vgg": 0.05025 | |
| }, | |
| { | |
| "file": "edit_2.jpg", | |
| "instruction": "Add a small red hot-air balloon in the upper part of the image.", | |
| "width": 1024, | |
| "height": 1024, | |
| "seed": 3002, | |
| "psnr_db": 31.28, | |
| "lpips_vgg": 0.05034 | |
| }, | |
| { | |
| "file": "edit_3.jpg", | |
| "instruction": "Add gently falling snow to the whole scene.", | |
| "width": 896, | |
| "height": 1152, | |
| "seed": 3003, | |
| "psnr_db": 33.0, | |
| "lpips_vgg": 0.06011 | |
| } | |
| ], | |
| "crops": [ | |
| { | |
| "file": "crop_portrait.png", | |
| "source": "t2i2k_0", | |
| "crop_xy": [ | |
| 768, | |
| 665 | |
| ], | |
| "crop_size": 512, | |
| "psnr_db_crop": 29.86 | |
| }, | |
| { | |
| "file": "crop_fox.png", | |
| "source": "t2i2k_2", | |
| "crop_xy": [ | |
| 592, | |
| 1008 | |
| ], | |
| "crop_size": 512, | |
| "psnr_db_crop": 26.14 | |
| }, | |
| { | |
| "file": "crop_street.png", | |
| "source": "t2i2k_4", | |
| "crop_xy": [ | |
| 512, | |
| 1120 | |
| ], | |
| "crop_size": 512, | |
| "psnr_db_crop": 39.88 | |
| }, | |
| { | |
| "file": "crop_edit_snow.png", | |
| "source": "edit1mp_3", | |
| "crop_xy": [ | |
| 192, | |
| 320 | |
| ], | |
| "crop_size": 512, | |
| "psnr_db_crop": 31.93 | |
| } | |
| ] | |
| } |