HLR / Cross_Modality_Relevance

The source code of ACL 2020 paper: "Cross-Modality Relevance for Reasoning on Language and Vision"
26 stars 8 forks source link

Data missed #5

Closed s1530129650 closed 2 years ago

s1530129650 commented 2 years ago

When I run "python run_cmr_nlvr2_test.py". The error is :

    traceback (most recent call last):
      File "run_cmr_nlvr2_test.py", line 86, in <module>
        shuffle=False, drop_last=False),
      File "run_cmr_nlvr2_test.py", line 53, in get_tuple
        dset = NLVR2Dataset(splits)
      File "/home/v-ensh/sciteamdrive2/v-ensh/CodeSearch/Cross_Modality_Relevance/data_preprocessing/cmr_nlvr2_data.py", line 18, in __init__
        self.data.extend(json.load(open(data_loc)))
    FileNotFoundError: [Errno 2] No such file or directory: '/tank/space/chen_zheng/data/cmr_nlvr2/data/nlvr2_preprocessing_data/test.json'

How could I obtain the data (/tank/space/chen_zheng/data/cmr_nlvr2/data/nlvr2_preprocessing_data/test.json set here)

kordjamshidi commented 2 years ago

@czheng17 can help here

czheng17 commented 2 years ago

We have released the data download link that is shown in our README file (the data link is https://github.com/lil-lab/nlvr.). Please download the data and follow our README description: Before running the code, please make sure your config file is correct: configs/global_config.py. (Here is important because you should write your data location in your machine after you download the data) Then you can correctly run python run_cmr_nlvr2_test.py.

s1530129650 commented 2 years ago

Many thanks