Skip to content

The data process for casualvid #8

@liulijie-2020

Description

@liulijie-2020

Hello, thank you for sharing the code. Please tell me what the path refers to the Causal-VidQA (which I got ['data/visual_feature'], ['data/text_feature'], ['data/split'] and ['data/QA'] in https://github.com/bcmi/Causal-VidQA/tree/master)
class VideoQADataset(Dataset):
def init(self, split, n_query=5, obj_num=1, sample_list_path="/data/vqa/causal/anno",
video_feature_path="/region_feat_aln" ):
super(VideoQADataset, self).init()
# 读取dataset
self.sample_list_file = osp.join(sample_list_path, "{}.csv".format(split))
self.sample_list = load_file(self.sample_list_file)
self.split = split
self.mc = n_query
self.obj_num = obj_num
# 读取video feature

    frame_feat_file = osp.join('/model_base_vqa_capfilt_large', '{}.h5'.format(split))
    # object_feat_file = osp.join(video_feature_path, "region_feat_n/acregion_8c20b_{}.h5".format(split))
    self.map_dir = load_file(osp.join(sample_list_path, 'map_dir_caul.json'))
    self.obj_feat_dir = video_feature_path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions