taigw / brats17

Brain tumor segmentation for MICCAI 2017 BraTS challenge
BSD 3-Clause "New" or "Revised" License
321 stars 130 forks source link

UnboundedLocalError: local variable referenced before assignment. #29

Open pranavkantgaur opened 5 years ago

pranavkantgaur commented 5 years ago

Hi,

In test.py, specifically, here, I find that the variable data_shape1ax has been referenced, but if I am using the single network (i.e., if(config_net1) is True) for whole tumor (similarly for other two tumor networks) data_shape1ax (similarly for data_shape2ax and data_shape3ax) will be undefined.

I get the following error: UnboundedLocalError: local variable 'data_shape1ax' referenced before assignment.