[Fix]: Fix read image bug (#386)

pull/405/head
Yuan Liu 2022-07-29 19:23:18 +08:00 committed by GitHub
parent 3ac192dad2
commit abcd43b431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -109,10 +109,6 @@ class BaseDataSource(object, metaclass=ABCMeta):
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)