未验证 提交 c9690673 编写于 作者: F Felix 提交者: GitHub

Update multilabel_dataset.py

上级 9c11ddca
...@@ -32,7 +32,6 @@ from ppcls.utils import logger ...@@ -32,7 +32,6 @@ from ppcls.utils import logger
from .common_dataset import CommonDataset from .common_dataset import CommonDataset
class MultiLabelDataset(CommonDataset): class MultiLabelDataset(CommonDataset):
def _load_anno(self): def _load_anno(self):
...@@ -66,10 +65,3 @@ class MultiLabelDataset(CommonDataset): ...@@ -66,10 +65,3 @@ class MultiLabelDataset(CommonDataset):
format(self.images[idx], ex)) format(self.images[idx], ex))
rnd_idx = np.random.randint(self.__len__()) rnd_idx = np.random.randint(self.__len__())
return self.__getitem__(rnd_idx) return self.__getitem__(rnd_idx)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册