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

运行过程中报错了,如何解决呢 #67

Open
xiaxiaoyunyl36 opened this issue Nov 17, 2022 · 1 comment
Open

运行过程中报错了,如何解决呢 #67

xiaxiaoyunyl36 opened this issue Nov 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xiaxiaoyunyl36
Copy link

Exception in thread Thread-2:
Traceback (most recent call last):
File "/Users/apple/miniconda3/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Users/apple/miniconda3/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/apple/miniconda3/lib/python3.9/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 217, in _thread_loop
batch = self._dataset_fetcher.fetch(indices,
File "/Users/apple/miniconda3/lib/python3.9/site-packages/paddle/fluid/dataloader/fetcher.py", line 121, in fetch
data.append(self.dataset[idx])
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/datasets/cd_dataset.py", line 134, in getitem
sample = self.transforms.apply_transforms(sample)
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/transforms/operators.py", line 122, in apply_transforms
sample = op(sample)
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/transforms/operators.py", line 184, in call
sample = self.apply(sample)
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/transforms/operators.py", line 1237, in apply
sample = Resize(self.crop_size)(sample)
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/transforms/operators.py", line 184, in call
sample = self.apply(sample)
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/transforms/operators.py", line 479, in apply
sample['mask'] = self.apply_mask(sample['mask'], target_size)
File "/Users/apple/zx-workspace/GeoView/PaddleRS/paddlers/transforms/operators.py", line 427, in apply_mask
mask = cv2.resize(mask, target_size, interpolation=cv2.INTER_NEAREST)
TypeError: Expected Ptrcv::UMat for argument 'src'

@xiaxiaoyunyl36 xiaxiaoyunyl36 added the bug Something isn't working label Nov 17, 2022
@Bobholamovic
Copy link
Member

你好,请问咱们是不是已经在交流群里解决了这个问题了?如果是的话,麻烦关闭这个issue哦

@Bobholamovic Bobholamovic self-assigned this Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants