xmengli / H-DenseUNet

TMI 2018. H-DenseUNet: Hybrid Densely Connected UNet for Liver and Tumor Segmentation from CT Volumes
526 stars 161 forks source link

TypeError: 'float' object cannot be interpreted as an integer #52

Open agatadefr opened 5 years ago

agatadefr commented 5 years ago

Hello,

I am getting an error concerning wrong type here in test.py

Loading model and preprocessing test data...0
------------------------------
------------------------------
Predicting masks on test data...0
------------------------------
Traceback (most recent call last):
  File "test.py", line 124, in <module>
    predict(args)
  File "test.py", line 71, in predict
    score1, score2 =  predict_tumor_inwindow(model, img_test, 3, mini, maxi, args)
  File "/pstore/home/krasona/dev/hcc/H-DenseUNet/lib/funcs.py", line 24, in predict_tumor_inwindow
    for cols in range(left_cols,right_cols+window_cols,window_cols):
TypeError: 'float' object cannot be interpreted as an integer

Any idea how to fix that ?

I would be appreciate for any help please