juglab/EmbedSeg

Where is medoid used?

r-matsuzaka opened this issue · 3 comments

Hi.

I have a question about implementation about medoid which is mentioned in the paper.
I found the calculation of it is done at

def generate_center_image(instance, center, ids, one_hot):

But I could not found the clue that this funtion is called from any other python scripts.

Could you tell me how the medoid is used in the code?

Hello @r-matsuzaka Thanks for looking into the code. The medoid, as you found out, is used by the process function which makes a call to the generate_center_image function --> this is where the medoid is computed.

Thank you so much!