Commit 750384a
committed
Fix HunyuanVideo 1.5 modular glyph regex to match curly quotes
The `extract_glyph_texts` helper in the HunyuanVideo 1.5 modular pipeline
had a copy-paste typo: both alternatives of the pattern matched ASCII
double quotes (`\"(.*?)\"|\"(.*?)\"`), making the second branch redundant
and silently dropping any text wrapped in the Chinese/smart curly quotes
`“…”`.
The non-modular counterpart in
`src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py`
uses the correct pattern `\"(.*?)\"|“(.*?)”`, which is what the model
expects for glyph rendering — HunyuanVideo 1.5 is a bilingual model, so
Chinese prompts that quote text with `“…”` would skip glyph extraction
entirely under the modular path and produce mis-rendered poster text.
This aligns the modular pipeline's pattern with the canonical one.1 parent c8c8401 commit 750384a
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments