Update README.md
#4
by
naykun
- opened
README.md
CHANGED
@@ -15,7 +15,7 @@ library_name: diffusers
|
|
15 |
</p>
|
16 |
|
17 |
<p align="center">
|
18 |
-
<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/
|
19 |
<p>
|
20 |
|
21 |
## Introduction
|
@@ -24,7 +24,7 @@ We are thrilled to release **Qwen-Image**, an image generation foundation model
|
|
24 |

|
25 |
|
26 |
## News
|
27 |
-
- 2025.08.04: We released [Qwen-Image
|
28 |
- 2025.08.04: We released Qwen-Image weights! Check at [huggingface](https://huggingface.co/Qwen/Qwen-Image) and [Modelscope](https://modelscope.cn/models/Qwen/Qwen-Image)!
|
29 |
- 2025.08.04: We released Qwen-Image! Check our [blog](https://qwenlm.github.io/blog/qwen-image) for more details!
|
30 |
|
@@ -55,8 +55,10 @@ else:
|
|
55 |
pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
|
56 |
pipe = pipe.to(device)
|
57 |
|
58 |
-
positive_magic =
|
59 |
-
|
|
|
|
|
60 |
|
61 |
# Generate image
|
62 |
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'''
|
@@ -76,7 +78,8 @@ aspect_ratios = {
|
|
76 |
width, height = aspect_ratios["16:9"]
|
77 |
|
78 |
image = pipe(
|
79 |
-
prompt=prompt + positive_magic,
|
|
|
80 |
width=width,
|
81 |
height=height,
|
82 |
num_inference_steps=50,
|
|
|
15 |
</p>
|
16 |
|
17 |
<p align="center">
|
18 |
+
<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/merge3.png" width="1600"/>
|
19 |
<p>
|
20 |
|
21 |
## Introduction
|
|
|
24 |

|
25 |
|
26 |
## News
|
27 |
+
- 2025.08.04: We released the [Technical Report](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/Qwen_Image.pdf) of Qwen-Image!
|
28 |
- 2025.08.04: We released Qwen-Image weights! Check at [huggingface](https://huggingface.co/Qwen/Qwen-Image) and [Modelscope](https://modelscope.cn/models/Qwen/Qwen-Image)!
|
29 |
- 2025.08.04: We released Qwen-Image! Check our [blog](https://qwenlm.github.io/blog/qwen-image) for more details!
|
30 |
|
|
|
55 |
pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
|
56 |
pipe = pipe.to(device)
|
57 |
|
58 |
+
positive_magic = [
|
59 |
+
"en": "Ultra HD, 4K, cinematic composition." # for english prompt,
|
60 |
+
"zh": "超清,4K,电影级构图" # for chinese prompt,
|
61 |
+
]
|
62 |
|
63 |
# Generate image
|
64 |
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'''
|
|
|
78 |
width, height = aspect_ratios["16:9"]
|
79 |
|
80 |
image = pipe(
|
81 |
+
prompt=prompt + positive_magic["en"],
|
82 |
+
negative_prompt=negative_prompt,
|
83 |
width=width,
|
84 |
height=height,
|
85 |
num_inference_steps=50,
|