mbzuai-oryx / XrayGPT

[BIONLP@ACL 2024] XrayGPT: Chest Radiographs Summarization using Medical Vision-Language Models.
469 stars 56 forks source link

Some questions about the XrayGPT dataset #3

Closed WangRongsheng closed 1 year ago

WangRongsheng commented 1 year ago

Thank you for your wonderful work - XrayGPT. I have some questions about XrayGPT that I have to ask you.

I have downloaded the openi annoatations file from https://mbzuaiac-my.sharepoint.com/:u:/g/personal/omkar_thawakar_mbzuai_ac_ae/EVYGprPyzdhOjFlQ2aNJbykBj49SwTGBYmC1uJ7TMswaVQ?e=qdqS8U . And I've downloaded the openi PNG image file from https://openi.nlm.nih.gov/imgs/collections/NLMCXR_png.tgz .

However I found that the image_id field in filter_cap.json does not correspond to the PNG image name, what is the reason for this? How do I deal with this issue?

Or I wonder if I could just get these PNG images that match filter_cap.json, which would speed up our work.

yukkai commented 1 year ago

Thank you for your wonderful work - XrayGPT. I have some questions about XrayGPT that I have to ask you.

I have downloaded the openi annoatations file from https://mbzuaiac-my.sharepoint.com/:u:/g/personal/omkar_thawakar_mbzuai_ac_ae/EVYGprPyzdhOjFlQ2aNJbykBj49SwTGBYmC1uJ7TMswaVQ?e=qdqS8U . And I've downloaded the openi PNG image file from https://openi.nlm.nih.gov/imgs/collections/NLMCXR_png.tgz .

However I found that the image_id field in filter_cap.json does not correspond to the PNG image name, what is the reason for this? How do I deal with this issue?

Or I wonder if I could just get these PNG images that match filter_cap.json, which would speed up our work.

Hi, have you resolved this problem?

Amshaker commented 1 year ago

Hi @WangRongsheng @yukkai ,

I apologize for the late reply.

The image ID in filter_cap.json is the unique part of the full image name. Its [ID]_[view_ID] of the following name:CXR[ID]_IM-N-X[view_ID].png

For instance, if one downloaded image with two views has names of : CXR1384_IM-0246-1001.png and CXR1384_IM-0246-2001.png, you will find them in filter_cap.json as "image_id": "1384_1", and "image_id": "1384_2", respectively.

I hope this answer makes it clear now.

Best regards, Abdelrahman.