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)