clustimage icon indicating copy to clipboard operation
clustimage copied to clipboard

Label names mixed up in results and results_unique

Open maximiliangilles opened this issue 1 year ago • 4 comments

Hi @erdogant,

first, thank you very much for the work you put in this project and making it public! When experimenting with your code base I came across an error when I access the 'labels' of cl.results() and cl.results_unique(). It seems to me that between both, the abels somehow mix up. I want to give you an example:

'img_name_1' is assigned a label '2' in cl.results_unique['labels'], however when I iterate over cl.results['labels'] and search for the file with the same name 'img_name_1' this image belongs (sometimes) to a different label, lets say '5' for example.

My goal is to extract random images and the most centered image (unique) image per cluster label, that is why I would like to match both labels. Maybe, do you have a different idea how I could do it?

Thank you very much!

Best,

Maximilian

maximiliangilles avatar May 19 '23 18:05 maximiliangilles