Commit 544b9ed
committed
fix(llava_onevision2): forward static images to image_processor
The image branch of _build_messages only appended the chat-template entry
but did not push the image into all_pil_images, so generate_until passed
images=None for static-image tasks. The <|image_pad|> placeholders then
had no pixel_values attached and the model produced near-random outputs.
Mirror the video branch and collect the image into all_pil_images so it
is forwarded via images=...1 parent 7108c2c commit 544b9ed
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| |||
0 commit comments