Closed a815137111 closed 2 months ago
发下完整的栈信息
发下完整的栈信息 Traceback (most recent call last): File "/home/junhang/swift/swift/llm/utils/utils.py", line 266, in _try_fetch res = self.template.encode(data) File "/home/junhang/swift/swift/llm/utils/template.py", line 447, in encode return _encode(example) if not streaming else _encode(example)[0] File "/home/junhang/swift/swift/llm/utils/template.py", line 1714, in _encode pixel_values = [transform_image(image, max_num=1 if has_video else 12) for image in images] File "/home/junhang/swift/swift/llm/utils/template.py", line 1714, in
pixel_values = [transform_image(image, max_num=1 if has_video else 12) for image in images] File "/home/junhang/swift/swift/llm/utils/vision_utils.py", line 167, in transform_image images = _dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num) File "/home/junhang/swift/swift/llm/utils/vision_utils.py", line 63, in _dynamic_preprocess resized_img = image.resize((target_width, target_height)) File "/home/junhang/anaconda3/envs/VL/lib/python3.10/site-packages/PIL/Image.py", line 2293, in resize self.load() File "/home/junhang/anaconda3/envs/VL/lib/python3.10/site-packages/PIL/ImageFile.py", line 312, in load raise _get_oserror(err_code, encoder=False) OSError: broken data stream when reading image file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/junhang/anaconda3/envs/VL/lib/python3.10/logging/init.py", line 1100, in emit
msg = self.format(record)
File "/home/junhang/anaconda3/envs/VL/lib/python3.10/logging/init.py", line 943, in format
return fmt.format(record)
File "/home/junhang/anaconda3/envs/VL/lib/python3.10/logging/init.py", line 678, in format
record.message = record.getMessage()
File "/home/junhang/anaconda3/envs/VL/lib/python3.10/logging/init.py", line 368, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/home/junhang/swift/swift/cli/sft.py", line 5, in
尝试拉取一下main分支最新的代码 如果不行的话,发一下sh看看
Message: 'Error occurs in lazy tokenize:' 这个报错怎么解决