deepseek-ai / deepseek-ai/Janus
ValueError: mean must have 4 elements if it is an iterable, got 3
- Dominant language
- Python
- Stars
- 17.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
File "/Janus/janus/models/processing_vlm.py", line 348, in __call__
prepare = self.process_one(
^^^^^^^^^^^^^^^^^
File "/Janus/janus/models/processing_vlm.py", line 311, in process_one
images_outputs = self.image_processor(images, return_tensors="pt")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/transformers/image_processing_utils.py", line 42, in __call__
return self.preprocess(images, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Janus/janus/models/image_processing_vlm.py", line 183, in preprocess
self.normalize(
File "/usr/local/lib/python3.12/site-packages/transformers/image_processing_utils.py", line 112, in normalize
return normalize(
^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/transformers/image_transforms.py", line 431, in normalize
raise ValueError(f"mean must have {num_channels} elements if it is an iterable, got {len(mean)}")
ValueError: mean must have 4 elements if it is an iterable, got 3
大佬们 这是什么问题呢
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.