scheckmedia / photils-dt

A darktable plugin that tries to predict keywords based on the selected image. This plugin uses photils-cli to handle this task. Photils-cli is an application that passes the image through a neural network, classifies it, and extracts the suggested tags. Everything happens offline without the need that your data are sent over the internet.
GNU General Public License v3.0
21 stars 3 forks source link

Labels order #10

Open mpaglia0 opened 2 years ago

mpaglia0 commented 2 years ago

Is it possible to have labels alphabetically ordered? I think it will be comfortable when labels returned are very similar (for example 'run', 'running' and 'runner'). Thanks

scheckmedia commented 2 years ago

Hi @mpaglia0 , I think this won't work since the labels are already ordered by the confidence score the network predicts. It might be that you have labels with a corresponding score like: walk = 0.999, running =0.993, sport = 0.992, runner = 0.983, fitness = 0.980, a.s.o. An ordering first by score and maybe second by name would result in no order change. If we sort, on the other hand, only by name, then a neural network would be useless.