You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 193, in convert_to_tensors
tensor = as_tensor(value)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 150, in as_tensor
return torch.from_numpy(value)
TypeError: expected np.ndarray (got numpy.ndarray)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/lustre/GPU4/home/zhangchuanyu/jiedi/LLaMA-Factory/qwen2vl/main.py", line 50, in
inputs = processor(
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/models/qwen2_vl/processing_qwen2_vl.py", line 115, in call
image_inputs = self.image_processor(images=images, videos=None, **output_kwargs["images_kwargs"])
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/image_processing_utils.py", line 41, in call
return self.preprocess(images, **kwargs)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/models/qwen2_vl/image_processing_qwen2_vl.py", line 458, in preprocess
return BatchFeature(data=data, tensor_type=return_tensors)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 79, in init
self.convert_to_tensors(tensor_type=tensor_type)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 199, in convert_to_tensors
raise ValueError(
ValueError: Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length.
完全复制的测试代码,padding设置为True,但报错了
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 193, in convert_to_tensors
tensor = as_tensor(value)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 150, in as_tensor
return torch.from_numpy(value)
TypeError: expected np.ndarray (got numpy.ndarray)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/lustre/GPU4/home/zhangchuanyu/jiedi/LLaMA-Factory/qwen2vl/main.py", line 50, in
inputs = processor(
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/models/qwen2_vl/processing_qwen2_vl.py", line 115, in call
image_inputs = self.image_processor(images=images, videos=None, **output_kwargs["images_kwargs"])
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/image_processing_utils.py", line 41, in call
return self.preprocess(images, **kwargs)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/models/qwen2_vl/image_processing_qwen2_vl.py", line 458, in preprocess
return BatchFeature(data=data, tensor_type=return_tensors)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 79, in init
self.convert_to_tensors(tensor_type=tensor_type)
File "/mnt/lustre/GPU4/home/zhangchuanyu/miniconda3/envs/cuda118_llama_factory/lib/python3.10/site-packages/transformers/feature_extraction_utils.py", line 199, in convert_to_tensors
raise ValueError(
ValueError: Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length.
完全复制的测试代码,padding设置为True,但报错了
The text was updated successfully, but these errors were encountered: