Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #14

Open
tobimichigan opened this issue Feb 27, 2020 · 1 comment
Open

IndexError: list index out of range #14

tobimichigan opened this issue Feb 27, 2020 · 1 comment

Comments

@tobimichigan
Copy link

While trying to run your code, from main.py the following error occurs:

Traceback (most recent call last): File "DenseNet-MURA-PyTorch/main.py", line 12, in <module> study_data = get_study_level_data(study_type='/XR_WRIST') File "DenseNet-MURA-PyTorch/pipeline.py", line 22, in get_study_level_data patients = list(os.walk(BASE_DIR))[0][1] # list of patient folder names IndexError: list index out of range

It seems as if pipeline.py depends on main.py or vice versa
Besides, where in the code do you actually declare the root dir for the dataset?

@great-energizer
Copy link

In pipeline.py file,
for phase in data_cat:
BASE_DIR = 'MURA-v1.0/%s/%s/' % (phase, study_type)
patients = list(os.walk(BASE_DIR))[0][1]

you need to change folder name from MURA-v1.0 to MURA-v1.1. The data is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants