deepseek-ai / deepseek-ai/Janus
是否支持传入多张图片?
- Dominant language
- Python
- Stars
- 17.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
传2以及2张以上图片报错:
Traceback (most recent call last):
File "/home/wanghui/daiteng01/deepseek/main.py", line 104, in
prepare_inputs = vl_chat_processor(
File "/home/wanghui/daiteng01/deepseek/Janus-main/janus/models/processing_vlm.py", line 353, in __call__
prepare = self.batchify([prepare])
File "/home/wanghui/daiteng01/deepseek/Janus-main/janus/models/processing_vlm.py", line 403, in batchify
batched_pixel_values[i, :n_image] = prepare.pixel_values
RuntimeError: The expanded size of the tensor (1) must match the existing size (2) at non-singleton dimension 0. Target sizes: [1, 3, 384, 384]. Tensor sizes: [2, 3, 384, 384]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.