deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
https://www.manning.com/books/deep-learning-with-pytorch
4.69k stars 1.98k forks source link

get'IndexError: list index out of range' when run the specific series_uid in p2ch10_explore_data.ipynb #105

Open whitewatercn opened 1 year ago

whitewatercn commented 1 year ago

getting 'IndexError: list index out of range' when trying to run the code

series_uid = '1.3.6.1.4.1.14519.5.2.1.6279.6001.124154461048929153767743874565'

showCandidate(series_uid)
image

i found the file1.3.6.1.4.1.14519.5.2.1.6279.6001.124154461048929153767743874565.mhd only exist in dir seg-lungs-LUNA16

image

if i try another uid like 1.3.6.1.4.1.14519.5.2.1.6279.6001.888291896309937415860209787179 in the dir subset1, code works correctly

image image