提交 8e8704f5 编写于 作者: Q qipengfei7

new robust reader

上级 0b48d1cc
...@@ -341,7 +341,7 @@ class Reader(object): ...@@ -341,7 +341,7 @@ class Reader(object):
sample['image'] = self._load_image(sample['im_file']) sample['image'] = self._load_image(sample['im_file'])
except Exception as e: except Exception as e:
logger.warn('invalid image:{}, error:{}'.format(sample['im_file'],e)) logger.warn('invalid image:{}, error:{}'.format(sample['im_file'],e))
is_valid_path = False is_valid_img_path = False
if self._epoch < self._mixup_epoch: if self._epoch < self._mixup_epoch:
num = len(self.indexes) num = len(self.indexes)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册