vqdang / hover_net

Simultaneous Nuclear Instance Segmentation and Classification in H&E Histology Images.
MIT License
537 stars 224 forks source link

Update targets.py #242

Open sumanthdonapati opened 1 year ago

sumanthdonapati commented 1 year ago

149 sometimes inst_com contains NaN values in it, idk why nan values are occuring in it. I am just replacing nan values with zero to not stop the training

stasiek-j commented 1 year ago

I my case inst_com contains NaN values when there is tile with only background (i.e. np.sum(int_map) == 0 ).