Bhanu068 / ITHN

This repo is the official implementation of the paper titled "Automatic Radiology Report Generation by Learning with Increasingly Hard Negatives"
Apache License 2.0
8 stars 0 forks source link

topk_pos_neg_iu_xray.json dosen't match iu_xray dataset #1

Open LYJ0327 opened 11 months ago

LYJ0327 commented 11 months ago

Hello, thank you for your work, it's great! But the iu_xray dataset you provided and related annotation file topk_pos_neg_iu_xray.json do not match, and the system keeps prompting the error of filenotfound like FileNotFoundError: [Errno 2] No such file or directory: '/data/lhx/lyj/data/iu_xray/images/CXR2117_IM-0745-1001.png'. Could you please provide the dataset file corresponding to the JSON file? thank you for your help.

Bhanu068 commented 11 months ago

Hello,

I appreciate your comment. Presently, I am occupied with work and will respond to your inquiry within the next 2-3 days. In the meantime, could you kindly verify whether the path "/data/lhx/lyj/data/iu_xray/images/CXR2117_IM-0745-1001.png" is a valid path?

Thank you for your understanding.

LYJ0327 commented 11 months ago

Thank you for taking the time out of your busy schedule to reply to me,/data/lhx/lyj/data/iu Xray/images/is the path to the dataset images I store, and all images in this path are organized in the form of /data/lhx/lyj/data/iu Xray/images/CXRXXX-IM-XXX/0.png or 1. png, which is also the way the dataset images are organized in the dataset download path you provided,as shown in the image below. At the same time, the annotations.json you provided in this link correspond one-to-one with the paths of these images. However, when I used the annotation file you provided, topk_pos_neg_iu_xray.json, the image ID, for example, "id": "CXR1_1-IM-0001-3001. png", you used does not match the path of the image dataset.Can you provide a dataset of images that is consistent with the annotation file? FLH9X57P A@ 4JZQAWYUDD0

xique26 commented 1 week ago

hello, i have the same problem, how do you solve this?

Bhanu068 commented 1 week ago

Hello,

Thank you for identifying the issue.

This issue can be resolved by renaming the image filenames to match those mentioned in JSON. I have done the same by writing a Python script that can do this but unfortunately, I don't have access to that script now.

Writing the script shouldn't be a difficult task. I can write one this weekend.