From abcd43b4318e6fcef8111b10dce3146bc78019eb Mon Sep 17 00:00:00 2001 From: Yuan Liu <30762564+YuanLiuuuuuu@users.noreply.github.com> Date: Fri, 29 Jul 2022 19:23:18 +0800 Subject: [PATCH] [Fix]: Fix read image bug (#386) --- mmselfsup/datasets/data_sources/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mmselfsup/datasets/data_sources/base.py b/mmselfsup/datasets/data_sources/base.py index c9c1d4f16..367e0429b 100644 --- a/mmselfsup/datasets/data_sources/base.py +++ b/mmselfsup/datasets/data_sources/base.py @@ -109,10 +109,6 @@ def get_img(self, idx): channel_order=self.channel_order) else: img = self.data_infos[idx]['img'] - - img_bytes = self.file_client.get(filename) - img = mmcv.imfrombytes( - img_bytes, flag=self.color_type, channel_order=self.channel_order) img = img.astype(np.uint8) return Image.fromarray(img)