(self, dataset)
| 1044 | TYPE = 'VQA' |
| 1045 | |
| 1046 | def load_data(self, dataset): |
| 1047 | data_path = osp.join(LMUDataRoot(), f'{dataset}.tsv') |
| 1048 | |
| 1049 | if file_size(data_path, 'GB') > 1: |
| 1050 | local_path = data_path.replace('.tsv', '_local.tsv') |
| 1051 | if not osp.exists(local_path) or os.environ.get('FORCE_LOCAL', None): |
| 1052 | from ..tools import LOCALIZE |
| 1053 | |
| 1054 | LOCALIZE(data_path, local_path) |
| 1055 | data_path = local_path |
| 1056 | return load(data_path) |
| 1057 | |
| 1058 | def evaluate(self, eval_file, **judge_kwargs): |
| 1059 | raise NotImplementedError |
nothing calls this directly
no test coverage detected