junqiangchen / LUNA16-Lung-Nodule-Analysis-2016-Challenge

LUNA16-Lung-Nodule-Analysis-2016-Challenge
https://luna16.grand-challenge.org/
254 stars 86 forks source link

about the dataprcessing #33

Closed daihahaha closed 1 year ago

daihahaha commented 4 years ago

陈老师,你好 我运行数据预处理部分的LUNA_node_extraction.py时,本来应该是生成classification文件夹的,但是我运行后没有结果。调试了一下代码发现line 93处的 if mini_df.shape[0] > 0: 这个判断都没有进去。尝试在此之前添加了一句print(mini_df.shape[0]),发现全部都是零。 多谢老师指教

junqiangchen commented 4 years ago

你好, 要确定所用csv数据和luna16图像数据是正确的。代码应该是没问题的。 谢谢

daihahaha commented 4 years ago

好的 谢谢陈老师,我再仔细核对一下

发自我的iPhone

------------------ Original ------------------ From: junqiangchen <notifications@github.com> Date: Fri,Jul 3,2020 1:39 PM To: junqiangchen/LUNA16-Lung-Nodule-Analysis-2016-Challenge <LUNA16-Lung-Nodule-Analysis-2016-Challenge@noreply.github.com> Cc: daihahaha <dai.yuhan@foxmail.com>, Author <author@noreply.github.com> Subject: Re: [junqiangchen/LUNA16-Lung-Nodule-Analysis-2016-Challenge] about the dataprcessing (#33)

你好, 要确定所用csv数据和luna16图像数据是正确的。代码应该是没问题的。 谢谢

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhang-qiang-github commented 3 years ago

@daihahaha 应该是df_node[df_node["file"] == img_file]这句话有错吧,我改了一下: df_node[df_node["file"] == img_file[0:-4]] 你可以调试一下,看看df_node里面到底路径是啥,要不要加上mhd之类的

Liuxinyu-ayu commented 2 years ago

for fcount, img_file in enumerate(tqdm(file_list_path)): 是这里的问题,原代码写的是file_list,里面带有了.mhd,所以匹配不上