首页 Paddle框架 帖子详情
PaddleSeg训练报错问题
收藏
快速回复
Paddle框架 问答学习资料模型训练 325 2
PaddleSeg训练报错问题
收藏
快速回复
Paddle框架 问答学习资料模型训练 325 2

Exception in thread Thread-2:
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 218, in _thread_loop
self._thread_done_event)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dataloader/fetcher.py", line 121, in fetch
data.append(self.dataset[idx])
File "/home/aistudio/work/PaddleSeg/paddleseg/datasets/dataset.py", line 155, in __getitem__
data = self.transforms(data)
File "/home/aistudio/work/PaddleSeg/paddleseg/transforms/transforms.py", line 78, in __call__
data = op(data)
File "/home/aistudio/work/PaddleSeg/paddleseg/transforms/transforms.py", line 365, in __call__
data[key] = functional.resize(data[key], (w, h), cv2.INTER_NEAREST)
File "/home/aistudio/work/PaddleSeg/paddleseg/transforms/functional.py", line 35, in resize
im = cv2.resize(im, (w, h), interpolation=interp)
TypeError: Expected Ptr for argument '%s'

不知道这是为啥,请大佬指教

0
收藏
回复
全部评论(2)
时间顺序
李长安
#2 回复于2022-09

TypeError: Expected Ptr for argument '%s',,,看起来是传的参数不对

0
回复
走天涯住海角
#3 回复于2022-09

检查一下数据

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户