Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to infer Janus on multi-images? #122

Open
2018211801 opened this issue Feb 2, 2025 · 1 comment
Open

How to infer Janus on multi-images? #122

2018211801 opened this issue Feb 2, 2025 · 1 comment

Comments

@2018211801
Copy link

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.

@xwgnick
Copy link

xwgnick commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants