From f72871c6edda4397ee48a48bbebb7ec30c7b46b5 Mon Sep 17 00:00:00 2001 From: Yizhou Chen Date: Mon, 18 Apr 2022 20:09:32 +0800 Subject: [PATCH] [Fix] Fix spelling mistakes on segmenter.py --- paddlers/tasks/segmenter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlers/tasks/segmenter.py b/paddlers/tasks/segmenter.py index 1ee8118..3c29e3f 100644 --- a/paddlers/tasks/segmenter.py +++ b/paddlers/tasks/segmenter.py @@ -524,7 +524,7 @@ class BaseSegmenter(BaseModel): for im in images: sample = {'image': im} if isinstance(sample['image'], str): - sample = ImgDecode(to_rgb=False)(sample) + sample = ImgDecoder(to_rgb=False)(sample) ori_shape = sample['image'].shape[:2] im = transforms(sample)[0] batch_im.append(im)