mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #159] A small question about multi images input for recognition #124
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sddthree on GitHub (Feb 9, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/159
When I use JanusFlow for multi image recognition, I find that it cannot input multiple images at once. After inspection, it was found that the problem lies in Janus/janus/janusflow/models/processed-vlm.py file, the call function which is from lines 378 to 383, only processes one of the images when multiple images are input, and does not form multiple VLChatProcessorOutput for List [VLChatProcessorOutput] in the batchify function. The current solution is to generate multiple VLChatProcessorOutput using loops with multiple imgaes inputs and add them to the prepare list for batchify. We hope to optimize the code in the future to improve the functionality of multiple images and write it down.