Commit 255db64
[Bugfix] Fix negative_prompt usage in z_image_examples.py
Move negative_prompt from OmniDiffusionSamplingParams to prompt dict.
OmniDiffusionSamplingParams does not have a negative_prompt field, so
passing it there causes TypeError at runtime. The correct pattern is to
pass negative_prompt in the prompt dict, matching text_to_image.py usage.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6cbeea9 commit 255db64
1 file changed
+7
-6
lines changedLines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
0 commit comments