未验证 提交 a6ab91d5 编写于 作者: Q qingqing01 提交者: GitHub

Fix class aware sampling (#542)

上级 e040d0e6
...@@ -279,7 +279,7 @@ class Reader(object): ...@@ -279,7 +279,7 @@ class Reader(object):
self.indexes = np.random.choice( self.indexes = np.random.choice(
self._sample_num, self._sample_num,
self._sample_num, self._sample_num,
replace=False, replace=True,
p=self.img_weights) p=self.img_weights)
if self._shuffle: if self._shuffle:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册