[Fix] Fix spelling mistakes on segmenter.py

own
Yizhou Chen 3 years ago committed by GitHub
parent f4f52fc93b
commit f72871c6ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      paddlers/tasks/segmenter.py

@ -524,7 +524,7 @@ class BaseSegmenter(BaseModel):
for im in images: for im in images:
sample = {'image': im} sample = {'image': im}
if isinstance(sample['image'], str): if isinstance(sample['image'], str):
sample = ImgDecode(to_rgb=False)(sample) sample = ImgDecoder(to_rgb=False)(sample)
ori_shape = sample['image'].shape[:2] ori_shape = sample['image'].shape[:2]
im = transforms(sample)[0] im = transforms(sample)[0]
batch_im.append(im) batch_im.append(im)

Loading…
Cancel
Save