Skip to content

Commit

Permalink
Update multi_dataset_test_for_close.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoyi-wu authored Nov 10, 2024
1 parent 87ac6fc commit ce61a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dataset/multi_dataset_test_for_close.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ def __init__(self, text_tokenizer, test_split = 'close', max_seq = 2048, max_img
self.data_whole_2D = self.data_whole_2D + [{'medpix_single_dataset':i} for i in range(len(medpix_single_dataset))]
print('medpix_single_dataset loaded')

vqarad_dataset = PMCVQA_Dataset(csv_path = '/gpfs/home/cs/leijiayu/wuchaoyi/wangyingjie/src/New_Dataset/data_csv/vqarad_test.csv')
vqarad_dataset = VQA_Dataset(csv_path = '/gpfs/home/cs/leijiayu/wuchaoyi/wangyingjie/src/New_Dataset/data_csv/vqarad_test.csv')
self.dataset_reflect['vqarad_dataset'] = vqarad_dataset
self.data_whole_2D = self.data_whole_2D + [{'vqarad_dataset':i} for i in range(len(vqarad_dataset))]
print('vqarad_dataset loaded')

slake_dataset = PMCVQA_Dataset(csv_path = '/gpfs/home/cs/leijiayu/wuchaoyi/wangyingjie/src/New_Dataset/data_csv/slakevqa_test.csv')
slake_dataset = VQA_Dataset(csv_path = '/gpfs/home/cs/leijiayu/wuchaoyi/wangyingjie/src/New_Dataset/data_csv/slakevqa_test.csv')
self.dataset_reflect['slake_dataset'] = slake_dataset
self.data_whole_2D = self.data_whole_2D + [{'slake_dataset':i} for i in range(len(slake_dataset))]
print('slake_dataset loaded')
Expand Down Expand Up @@ -302,4 +302,4 @@ def text_add_image(self,images,question,answer):
# print(len(dataset))
# for i in range(10):
# dataset[i]
# input()
# input()

0 comments on commit ce61a67

Please sign in to comment.