Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

UnboundLocalError: local variable 'experiment_data' referenced before assignment #11

Closed
sivajyothi1 opened this issue Nov 10, 2019 · 1 comment

Comments

@sivajyothi1
Copy link

Hello,

When i evaluate the model, i'm facing this issue. Can you please help me to resolve this issue??

(decathlon) sivajyothi@cougar-U:~/unet/3D$ python evaluate_model.py --data_path /home/sivajyothi/data/Task01_BrainTumour/ --saved_model /home/sivajyothi/unet/3D/saved_model/3d_unet_decathlon.hdf5

Using TensorFlow backend.
Started script on 2019-11-11 00:26:31.874186
OMP: Warning #181: OMP_PROC_BIND: ignored because KMP_AFFINITY has been defined
Loading images and masks from test set
File /home/sivajyothi/data/Task01_BrainTumour/dataset.json doesn't exist. It should be part of the Decathlon directory
Traceback (most recent call last):
File "evaluate_model.py", line 77, in
**validation_data_params)
File "/home/sivajyothi/unet/3D/dataloader.py", line 83, in init
self.list_IDs = self.create_file_list()
File "/home/sivajyothi/unet/3D/dataloader.py", line 146, in create_file_list
self.output_channels = experiment_data["labels"]
UnboundLocalError: local variable 'experiment_data' referenced before assignment

Thank you.

@MasterSkepticista
Copy link

In case someone else still faces this issue, it is because of the wrong path to --data_path

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

No branches or pull requests

2 participants