Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
We are thrilled to release
Qwen-Image
, an image generation foundation model in the Qwen series that achieves significant advances in
complex text rendering
and
precise image editing
. Experiments show strong general capabilities in both image generation and editing, with exceptional performance in text rendering, especially for Chinese.
The following contains a code snippet illustrating how to use the model to generate images based on text prompts:
from diffusers import DiffusionPipeline
import torch
model_name = "Qwen/Qwen-Image"# Load the pipelineif 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)
positive_magic = [
"en": "Ultra HD, 4K, cinematic composition."# for english prompt,"zh": "č¶ ęø ļ¼4Kļ¼ēµå½±ēŗ§ęå¾"# for chinese prompt,
]
# Generate image
prompt = '''A coffee shop entrance features a chalkboard sign reading "Qwen Coffee š $2 per cup," with a neon light beside it displaying "éä¹åé®". Next to it hangs a poster showing a beautiful Chinese woman, and beneath the poster is written "Ļā3.1415926-53589793-23846264-33832795-02384197". Ultra HD, 4K, cinematic composition'''
negative_prompt = " "# Generate with different aspect ratios
aspect_ratios = {
"1:1": (1328, 1328),
"16:9": (1664, 928),
"9:16": (928, 1664),
"4:3": (1472, 1140),
"3:4": (1140, 1472)
}
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")
Show Cases
One of its standout capabilities is high-fidelity text rendering across diverse images. Whether itās alphabetic languages like English or logographic scripts like Chinese, Qwen-Image preserves typographic details, layout coherence, and contextual harmony with stunning accuracy. Text isnāt just overlaidāitās seamlessly integrated into the visual fabric.
Beyond text, Qwen-Image excels at general image generation with support for a wide range of artistic styles. From photorealistic scenes to impressionist paintings, from anime aesthetics to minimalist design, the model adapts fluidly to creative prompts, making it a versatile tool for artists, designers, and storytellers.
When it comes to image editing, Qwen-Image goes far beyond simple adjustments. It enables advanced operations such as style transfer, object insertion or removal, detail enhancement, text editing within images, and even human pose manipulationāall with intuitive input and coherent output. This level of control brings professional-grade editing within reach of everyday users.
But Qwen-Image doesnāt just create or editāit understands. It supports a suite of image understanding tasks, including object detection, semantic segmentation, depth and edge (Canny) estimation, novel view synthesis, and super-resolution. These capabilities, while technically distinct, can all be seen as specialized forms of intelligent image editing, powered by deep visual comprehension.
Together, these features make Qwen-Image not just a tool for generating pretty pictures, but a comprehensive foundation model for intelligent visual creation and manipulationāwhere language, layout, and imagery converge.
License Agreement
Qwen-Image is licensed under Apache 2.0.
Citation
We kindly encourage citation of our work if you find it useful.
Qwen-Image huggingface.co is an AI model on huggingface.co that provides Qwen-Image's model effect (), which can be used instantly with this Qwen Qwen-Image model. huggingface.co supports a free trial of the Qwen-Image model, and also provides paid use of the Qwen-Image. Support call Qwen-Image model through api, including Node.js, Python, http.
Qwen-Image huggingface.co is an online trial and call api platform, which integrates Qwen-Image's modeling effects, including api services, and provides a free online trial of Qwen-Image, you can try Qwen-Image online for free by clicking the link below.
Qwen Qwen-Image online free url in huggingface.co:
Qwen-Image is an open source model from GitHub that offers a free installation service, and any user can find Qwen-Image on GitHub to install. At the same time, huggingface.co provides the effect of Qwen-Image install, users can directly use Qwen-Image installed effect in huggingface.co for debugging and trial. It also supports api for free installation.