[GH-ISSUE #122] How to infer Janus on multi-images? #93

Open
opened 2026-10-26 21:11:57 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @2018211801 on GitHub (Feb 2, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/122

Thanks for your nice model, but I cannot infer on multi-images. Counld you provide the code? Or the model cannot infer on multi-images.

Originally created by @2018211801 on GitHub (Feb 2, 2025). Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/122 Thanks for your nice model, but I cannot infer on multi-images. Counld you provide the code? Or the model cannot infer on multi-images.
Author
Owner

@xwgnick commented on GitHub (Feb 6, 2025):

Thanks for your nice model, but I cannot infer on multi-images. Counld you provide the code? Or the model cannot infer on multi-images.

Use multiple <image_placeholder>,like:
conversation = [ { "role": "<|User|>", "content": f"<image_placeholder>\n<image_placeholder>\n{question}", "images": ["./test_images/test_1.jpg", "./test_images/test_2.jpg"], }, {"role": "<|Assistant|>", "content": ""}, ]

<!-- gh-comment-id:2639171479 --> @xwgnick commented on GitHub (Feb 6, 2025): > Thanks for your nice model, but I cannot infer on multi-images. Counld you provide the code? Or the model cannot infer on multi-images. Use multiple <image_placeholder>,like: `conversation = [ { "role": "<|User|>", "content": f"<image_placeholder>\n<image_placeholder>\n{question}", "images": ["./test_images/test_1.jpg", "./test_images/test_2.jpg"], }, {"role": "<|Assistant|>", "content": ""}, ]`
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/Janus#93
No description provided.