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

ValueError: mean must have 4 elements if it is an iterable, got 3 #192

Open
wanmei002 opened this issue Mar 3, 2025 · 0 comments
Open

Comments

@wanmei002
Copy link

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

大佬们 这是什么问题呢

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

1 participant