mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
set up default category value for hle
This commit is contained in:
parent
ef3ca3ebc1
commit
c850734aa2
@ -9,7 +9,7 @@ from .base import BaseDataset
|
|||||||
class HLEDataset(BaseDataset):
|
class HLEDataset(BaseDataset):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def load(path: str, category: str):
|
def load(path: str, category: str | None = None):
|
||||||
dataset = load_dataset(path)
|
dataset = load_dataset(path)
|
||||||
ds = dataset['test'].filter(lambda x: x['image'] == '')
|
ds = dataset['test'].filter(lambda x: x['image'] == '')
|
||||||
if category:
|
if category:
|
||||||
|
Loading…
Reference in New Issue
Block a user