-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
问题确认 Search before asking
- 我已经查询历史issue(包括open与closed),没有发现相似的bug。I have searched the open and closed issues and found no similar bug report.
Bug描述 Describe the Bug
Exception in thread Thread-2 (_thread_loop):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/paddle/io/dataloader/dataloader_iter.py", line 245, in _thread_loop
batch = self._dataset_fetcher.fetch(
File "/usr/local/lib/python3.10/dist-packages/paddle/io/dataloader/fetcher.py", line 77, in fetch
data.append(self.dataset[idx])
File "/usr/local/lib/python3.10/dist-packages/paddleseg/datasets/dataset.py", line 163, in getitem
data = self.transforms(data)
File "/usr/local/lib/python3.10/dist-packages/paddleseg/transforms/transforms.py", line 128, in call
data = op(data)
File "/usr/local/lib/python3.10/dist-packages/paddleseg/transforms/transforms.py", line 1138, in call
data['img'] = self._apply_pil_ops(img,ops,params_dict,prob_dict,data)
File "/usr/local/lib/python3.10/dist-packages/paddleseg/transforms/transforms.py", line 1160, in _apply_pil_ops
data['img'] = opsid
File "/usr/local/lib/python3.10/dist-packages/paddleseg/transforms/functional.py", line 104, in saturation
im = ImageEnhance.Color(im).enhance(saturation_delta)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageEnhance.py", line 55, in init
if "A" in image.getbands():
AttributeError: 'numpy.ndarray' object has no attribute 'getbands'
在做语义分割的时候提示这个错误,怎么解决啊
复现环境 Environment
paddlex 3.0
Bug描述确认 Bug description confirmation
- 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.
是否愿意提交PR? Are you willing to submit a PR?
- 我愿意提交PR!I'd like to help by submitting a PR!