Skip to content

Commit b206dc1

Browse files
authored
Fix video error. Add prepare_dataset method to ConcatVideoDataset. (#1586)
Added a placeholder method 'prepare_dataset' to the ConcatVideoDataset class. Fix “Can't instantiate abstract class QBench_Video with abstract method prepare_dataset“. Several other videos also encountered this problem, and the issue was resolved after modification.
1 parent 93c6394 commit b206dc1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

vlmeval/dataset/video_concat_dataset.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
class ConcatVideoDataset(VideoBaseDataset):
1111
# This dataset takes multiple dataset names as input and aggregate them into a single dataset.
1212
# Each single dataset should not have a field named `SUB_DATASET`
13-
13+
14+
def prepare_dataset(self, dataset):
15+
pass
16+
1417
DATASET_SETS = {}
1518

1619
def __init__(self, dataset, **kwargs):

0 commit comments

Comments
 (0)