darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Automatic tagging with locally running LLM like Ollama

Open AxelG-DE opened this issue 6 months ago • 2 comments

Describe the solution you'd like

Usually I use tagging very rarely. Mostly only for panoramas and Timelapses.

However sometimes it would be very handy to find pictures quick.

There is LR-Genius and they work also with Ollama as LLM, which can run locally and use this to generate tags and picture descriptions

Such an local-AI-based auto-tagging tool could be nice for dt as well.

Alternatives

I have heard on IRC, that there was something called photilis. I never came across this and donno whether reactivating and binding to AI would be a thing

Additional context

AxelG-DE avatar Jun 28 '25 14:06 AxelG-DE

there was something called photilis.

There is a lua-script, contrib/photils, https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/photils/

wpferguson avatar Jun 28 '25 14:06 wpferguson

So if this is still a thing, than it is "just" a matter of getting photils connected to ollama?

I opened an issue there, would be nice if somebody second that.

AxelG-DE avatar Jun 28 '25 15:06 AxelG-DE

After a few attempts of my own, I am not convinced of the quality of automatic tagging using LLM. Recognizing and removing nonsensical tags requires some time and effort. I could not recognize any real advantage over manual tagging.

pehar1 avatar Jun 30 '25 07:06 pehar1

pity I see it oposite. Manually tagging I simply do not do at all. A superfluous tag on the other hand would not be such a big deal

AxelG-DE avatar Jun 30 '25 15:06 AxelG-DE

A superfluous tag on the other hand would not be such a big deal

For me, they definitely are. And what about hierarchical tags ? I use them exclusively, but despite an intensive search on the net, I have not yet found any indication that an LLM would be able to generate them.

pehar1 avatar Jul 02 '25 07:07 pehar1

Allegedly LR-genius can detect the location from within the pictures. Indeed that won't work all the time but with characteristic city views.... That would be something nice. Up to now I could not achieve such with photils (but have only played a few minutes, yet)

AxelG-DE avatar Jul 05 '25 09:07 AxelG-DE

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Sep 04 '25 00:09 github-actions[bot]

Here's another Lua AI integration: https://www.youtube.com/watch?v=bGFSdvZCsN0

Donatzsky avatar Sep 04 '25 20:09 Donatzsky

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Nov 04 '25 00:11 github-actions[bot]