juliandewit / kaggle_ndsb2017

Kaggle datascience bowl 2017
MIT License
622 stars 290 forks source link

all nodules at (0,0,0) shown in the result #6

Open Master-13 opened 7 years ago

Master-13 commented 7 years ago

I run step3.py separately.

I downloaded the code and tried to run it on my own computer. (also with trained model and LUNA16 training data as test set) However, there are something wrong in the result --- all nodules are detected at (0,0,0) , and the "diameter_mm"s are all negative numbers.

I tried to debug step3.py and find something: at line 60-62, "center_x","center_y","center_z" equals to 0.0 no mater what the input image is.

How could I fix this problem? Waiting for your reply...

juliandewit commented 7 years ago

Line 62 is part of cleanup of predictions.

At row 282. p = model.predict(batch_data, batch_size=batch_size) What do you get in "p" ?

That one is important to validate if the model does something sensible. The rest is just "bookkeeping".

Master-13 commented 7 years ago

@juliandewit I made a simple mistake. Your code runs well with python3. In python2, "int/int" always equals 0 @line 294-296 in step3.py .

Thanks for your reply!

juliandewit commented 7 years ago

Great !