Skip to content

Commit

Permalink
[Fix]: Fix read image bug (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanLiuuuuuu authored Jul 29, 2022
1 parent 3ac192d commit abcd43b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mmselfsup/datasets/data_sources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit abcd43b

Please # to comment.