Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T-T+X_instruction_dataset.py code question #80

Open
wsg1873 opened this issue Feb 20, 2024 · 0 comments
Open

T-T+X_instruction_dataset.py code question #80

wsg1873 opened this issue Feb 20, 2024 · 0 comments

Comments

@wsg1873
Copy link

wsg1873 commented Feb 20, 2024

in the line 28 of T-T+X_instruction_dataset.py. The dataset would read the image_t2x.json, But there are no the key "mm_name". Do you forget to add the "mm_name" key ? Can you solve the problems, thank you very much!
with open(data_path, 'r', encoding='utf-8') as f:
res = json.load(f)
for instance in tqdm(res, total=len(res)):
self.instruction_list.append(instance['conversation'])
self.mm_path_list.append(instance['mm_name'])
self.dataset_type_list = [dataset_type for _ in range(len(self.instruction_list))]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant