anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Turns written prompts into images and renders readable text inside them, in English and Chinese. Suits designers, artists and developers who work with the diffusers library.
Qwen-Image is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download Qwen/Qwen-Image
Qwen-Image is a text to image model in the Qwen series, with 20.4B parameters. It generates pictures from written prompts and is built to place readable text inside them, especially Chinese. The card also describes image editing, and lists English and Chinese as its languages.
Designers, artists and storytellers who need pictures with legible words fit best. Developers who want to call an image model from Python with the diffusers library can use it too.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Design | Graphic designers | Make posters and signs that carry readable text | A shop sign with a Chinese neon light |
| Storytelling | Artists and writers | Create scenes in styles from photorealistic to anime | An impressionist painting from a short prompt |
| Software | Python developers | Call the model through the diffusers library | Generate a 16:9 image and save it as a file |
If disk space is tight, you can skip it, since the full weights are large.
Use it from Python on a computer that can hold the weights.
| Use case | Who | What they get back |
|---|---|---|
| Text-heavy images | Designers | Posters, signs and labels with readable English or Chinese text |
| Art in many styles | Artists and storytellers | Scenes from photorealistic to impressionist, anime or minimalist |
| Image edits | Everyday users | Style changes, adding or removing objects, text edits and pose changes, as the card describes them |
You need Python and a lot of free disk space.
pip install -U huggingface_hub hf download Qwen/Qwen-Image
Load the pipeline in Python. The example picks bfloat16 on a CUDA GPU and float32 on the CPU.
from diffusers import DiffusionPipeline
import torch
model_name = "Qwen/Qwen-Image"
# Load the pipeline
if torch.cuda.is_available():
torch_dtype = torch.bfloat16
device = "cuda"
else:
torch_dtype = torch.float32
device = "cpu"
pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
pipe = pipe.to(device)Next, set a prompt variable to your own text. The script adds a short quality phrase for English or Chinese prompts, picks a size from a list of aspect ratios, runs 50 steps and saves the image as example.png.
positive_magic = {
"en": ", Ultra HD, 4K, cinematic composition.", # for english prompt
"zh": ", 超清,4K,电影级构图." # for chinese prompt
}
negative_prompt = " " # using an empty string if you do not have specific concept to remove
aspect_ratios = {
"1:1": (1328, 1328),
"16:9": (1664, 928),
"9:16": (928, 1664),
"4:3": (1472, 1140),
"3:4": (1140, 1472),
"3:2": (1584, 1056),
"2:3": (1056, 1584),
}
width, height = aspect_ratios["16:9"]
image = pipe(
prompt=prompt + positive_magic["en"],
negative_prompt=negative_prompt,
width=width,
height=height,
num_inference_steps=50,
true_cfg_scale=4.0,
generator=torch.Generator(device="cuda").manual_seed(42)
).images[0]
image.save("example.png")You write "A coffee shop entrance with a chalkboard price sign and a neon sign in Chinese", keep the 16:9 setting and run the script. It saves one image named example.png, 1664 pixels wide and 928 tall, built from that prompt.
Qwen-Image turns a written description into a picture, and it is made to put readable words in that picture. A good first try is to download the files with the two Hugging Face commands. Then run the pipeline with a short prompt that asks for a sign with your own words on it.
Under the hood it is a 20.4B parameter model loaded through the diffusers DiffusionPipeline class. The example runs 50 inference steps with a true_cfg_scale of 4.0 and an empty negative prompt. The trade-off is size, since the BF16 weights are about 40.9 GB and the CPU path uses float32.
Other people have published 44 quantized and 108 fine-tuned versions of this model, which can help when the full weights are too big.
Turns written prompts into images and renders readable text inside them, in English and Chinese. Suits designers, artists and developers who work with the diffusers library.
Made by Qwen on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Qwen-Image is a text to image model in the Qwen series, with 20.4B parameters. It generates pictures from written prompts and is built to place readable text inside them, especially Chinese. The card also describes image editing, and lists English and Chinese as its languages.
Who it suits: Designers, artists and storytellers who need pictures with legible words fit best. Developers who want to call an image model from Python with the diffusers library can use it too.
Industry | Who uses it | How they use it | Example
Design | Graphic designers | Make posters and signs that carry readable text | A shop sign with a Chinese neon light
Storytelling | Artists and writers | Create scenes in styles from photorealistic to anime | An impressionist painting from a short prompt
Software | Python developers | Call the model through the diffusers library | Generate a 16:9 image and save it as a file
If disk space is tight, you can skip it, since the full weights are large.
Where to use it: Use it from Python on a computer that can hold the weights.
Use case | Who | What they get back
Text-heavy images | Designers | Posters, signs and labels with readable English or Chinese text
Art in many styles | Artists and storytellers | Scenes from photorealistic to impressionist, anime or minimalist
Image edits | Everyday users | Style changes, adding or removing objects, text edits and pose changes, as the card describes them
How to set it up: You need Python and a lot of free disk space.
pip install -U huggingface_hub
hf download Qwen/Qwen-Image
How to use it: Load the pipeline in Python. The example picks bfloat16 on a CUDA GPU and float32 on the CPU.
from diffusers import DiffusionPipeline
import torch
model_name = "Qwen/Qwen-Image"
# Load the pipeline
if torch.cuda.is_available():
torch_dtype = torch.bfloat16
device = "cuda"
else:
torch_dtype = torch.float32
device = "cpu"
pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
pipe = pipe.to(device)
Next, set a prompt variable to your own text. The script adds a short quality phrase for English or Chinese prompts, picks a size from a list of aspect ratios, runs 50 steps and saves the image as example.png.
positive_magic = {
"en": ", Ultra HD, 4K, cinematic composition.", # for english prompt
"zh": ", 超清,4K,电影级构图." # for chinese prompt
}
negative_prompt = " " # using an empty string if you do not have specific concept to remove
aspect_ratios = {
"1:1": (1328, 1328),
"16:9": (1664, 928),
"9:16": (928, 1664),
"4:3": (1472, 1140),
"3:4": (1140, 1472),
"3:2": (1584, 1056),
"2:3": (1056, 1584),
}
width, height = aspect_ratios["16:9"]
image = pipe(
prompt=prompt + positive_magic["en"],
negative_prompt=negative_prompt,
width=width,
height=height,
num_inference_steps=50,
true_cfg_scale=4.0,
generator=torch.Generator(device="cuda").manual_seed(42)
).images[0]
image.save("example.png")
Example: You write "A coffee shop entrance with a chalkboard price sign and a neon sign in Chinese", keep the 16:9 setting and run the script. It saves one image named example.png, 1664 pixels wide and 928 tall, built from that prompt.
For newcomers and experts: Qwen-Image turns a written description into a picture, and it is made to put readable words in that picture. A good first try is to download the files with the two Hugging Face commands. Then run the pipeline with a short prompt that asks for a sign with your own words on it.
Under the hood it is a 20.4B parameter model loaded through the diffusers DiffusionPipeline class. The example runs 50 inference steps with a true_cfg_scale of 4.0 and an empty negative prompt. The trade-off is size, since the BF16 weights are about 40.9 GB and the CPU path uses float32.
Write a prompt in English or Chinese
Add the quality phrase to the prompt
Choose an aspect ratio and size
Run 50 inference steps in the pipeline
Save the image as a file
Good to know: Other people have published 44 quantized and 108 fine-tuned versions of this model, which can help when the full weights are too big.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download Qwen/Qwen-Image
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen-Image This page | 348,570 | 2,696 | 20.4B | apache-2.0 | |
| stable-diffusion-xl-base-1.0Shares text-to-image · diffusers · safetensors | 4,688,522 | 8,466 | 2.6B | openrail++ | |
| Animagine XL 4.0Shares text-to-image · diffusers · safetensors | 1,026,807 | 582 | 2.6B | openrail++ | |
| Stable Diffusion v1-5Shares text-to-image · diffusers · safetensors | 1,012,982 | 1,364 | 860M | creativeml-openrail-m | |
| Z-Image-TurboShares text-to-image · diffusers · safetensors | 765,804 | 5,594 | 6.2B | apache-2.0 | |
| FLUX.2 [klein] 4B BaseShares text-to-image · diffusers · safetensors | 743,055 | 195 | 3.9B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.