Closed geoexploring closed 9 months ago
Thank you for the feedback. Could you confirm if you are following the steps outlined in ./A1_DATA/MIMIC-CXR/data_preprocess/run_preprocess.sh to generate the file fg_radgraph_metric.csv? I have updated the processed file in both Google Drive and Baidu Cloud, you can check if this file is same as what you used.
@xiaoman-zhang , Thank you very much for your response.
I apologize for any confusion my initial description may have caused. I have updated the question for clarity.
I generated the fg_radgraph_metric.csv
file following the process outlined in ./A1_DATA/MIMIC-CXR/data_preprocess/run_preprocess.sh
, but only chose the small part in the original fg_radgraph_metric.csv
, as detailed in the uploaded file fg_radgraph_metric_test.csv.
Fortunately, I have resolved the issue by removing an element, such as 'pleural effusion', from the code text_list, reducing its count from 41
to 40
, which allowed the program to run at normal. My goal was to understand the details of KAD for operational purposes rather than to replicate the precision of the paper, so I did not investigate further.
Please feel free to contact me if there are any questions.
Thanks.
@xiaoman-zhang ,@chaoyi-wu , Thank you for your wonderful work.
I encountered an issue while running the file A3_CLIP/main.py.
The
KAD/A3_CLIP/configs/Res_train.yaml
is as follows:The error is as follows:
The error line is the
loss_ce_image = ce_loss(pred_class_image.view(-1,2),label.view(-1))
, and I have printed the shapes ofpred_class_image.view(-1,2)
andlabel.view(-1)
:The Shape of
pred_class_image
before view istorch.Size([16, 41, 2])
, The Shape oflabel
before view istorch.Size([16, 40])
, Could you please help me understand what the numbers40
and41
represent in this context, and how I might resolve the mismatch error?Thank you for your assistance.