vqdang / hover_net

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

Question about compute_states #266

Open Younger330 opened 1 year ago

Younger330 commented 1 year ago

Hello, I am using your compute_states.py to evaluate our code, but I have a question regarding how to set the true_idx_offset and pred_idx_offset, as I didn't find any information on setting them in your code.

Here is the code:

`true_idx_offset = ( true_idx_offset + true_inst_type_all[-1].shape[0] if file_idx != 0 else 0 )

pred_idx_offset = ( pred_idx_offset + pred_inst_type_all[-1].shape[0] #if file_idx != 0 else 0 )`