Coder Social home page Coder Social logo

scheckmedia / photils-dt Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 3.0 3.99 MB

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.

License: GNU General Public License v3.0

Lua 100.00%
darktable darktable3 darktable-plugin lua photils keyword tags tagging tagging-tool

photils-dt's People

Contributors

mpaglia0 avatar scheckmedia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

photils-dt's Issues

Enhancement: batch tagging

I think this will help many of us who have large collections of photos built over many years. Having some keywords that are usually right is better than no keywords. I had been using googlephoto to store lower resolution photos as a 3rd backup and so I can take advantage of the search capabilities... I then do a search and get the filename and them look for that file locally. I prefer having my photos local and not share with google if I can.

  • ability to set keywords for many photos automatically in a batch process and also in an import process (governed by paramters)
  • set paramters (set max number of keywords, set max keywords in the same category, set folders this should apply to, or regex parameters... as a filter of what to include in keyword update)
  • take some keywords from folder structure (i.e. date, and others), ask if these should also be applied in this batch
  • group all possible keywords into keyword categories... then allow the user to select all or some of the cateories for matching as keywords (hoping this helps with accuracy... if you know you don't have / or don't care about a certain category then turn that off... perhaps this is overkill)
  • Most IMPORTANT: then keep a tag or keyword to identify photos that were only automatically tagged and which were manually reviewed/tagged... rules should not apply to manual tags and manual tags should persist (unless asked by user) when they are run through batch tagging...
  • don't know if it is possible to keep note which tags were manually set vs automatically... if only at image level then definitely need to ask user what they want to do with files already manually tagged (overwrite and reset manually reviewed flag or do not update or append new values and keep a manually review or append and clear manual reviewed flag) when batch tagging
  • need a filters/views of photos with and/or without manual review so user can review them and update or use to find a specific photo

I know this is not a spec... happy to write something more precise if this is of interest to develop. I wish I knew more and could help more but my coding skills practically noexistant.

Reduced Set

I would like to reduce the dataset to limit the tags returned to only a subset of what is defined in the NN.

Looking at the source code, it appears that the NN basically returns a list of indices which you use to directly index on the array of names in the json file (found this out after I tried to just remove a bunch of entries from the json file and the script crashed).

Next thing I tried was to use the override file and just point all the tags I didn’t care about to an empty string. However, it appears to not like this either, and the cli just doesn’t return anything (haven’t looked into the source for why this might be).

My question then for you is, is there any way to reduce the dataset? Either removing entries from the NN completely (may also reduce search time??) or something similar to what I tried above?

Extract JPEG from raw when possible

I really like the idea of this plugin, but it is slow. I used exiftool -b -JpgFromRaw to extract JPEG from raw files and it seems to provide comparable results even with heavily processed images.

Darktable crashes when I click Get tags

Hi,

I use Darkatable 4.2.1. on Windows 10.
I installed photils as adviced on https://github.com/scheckmedia/photils-dt.
Photils-cli for Windows is also installed in C:\Program files\photils-cli folder and this folder is added to PATH. Photils-cli works by itself - I tested it from command line.
But probelms are in Darktable. I am able to Enable photils script in Darktable but whenever I select a picture and click GET TAGS my Dartable crashes immediately.
Where should I search for a solution? Any idea?
Thanks.

Get tags for multiple images at a time

I just discovered your script today while giving Darktable a much deeper evaluation than I have previously. Seriously, I've been wanting a tag suggestion tool like this for a long time. Good work!

How hard would it be to make it work on multiple images at a time? For example, if I take pictures of something from several different angles, then I'd want all of them to have the same tags. I'd like to select all the similar pictures, hit "get tags", and then select the ones I want. When I click "attach", all the images would have the tags attached. Like what issue #3 would do.

FYI, the copy and paste metadata script does provide something of a work around. You add the tags to one pic, then copy the metadata, then paste it onto the rest of the pics. And the copy_attach_detach_tags script likely would do ok as well.

I do think building into your script would provide a nicer UI, though. :)

Labels order

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

Olympus Raw Files are not working

It seems that there are problems with Olympus Raw files or images in general without a thumbnail.
If this is the case a workaround that exports the selected darktable image to jpg should be implemented. This will slow down the whole process but it will work.

language-switch didn't recognised

Hi !
I've use darktable 3.8.1 and Ubuntu 20.04

flemming@bigone:$ darktable --version
this is darktable 3.8.1
..and configured the language for the plugin in german

flemming@bigone:~/.config/darktable/lua/locale/de_DE/LC_MESSAGES$ ll photils.po
-rw-rw-r-- 1 flemming flemming 1945 Feb 1 23:34 photils.po

using the script-manager

flemming@bigone:~/.config/darktable$ cat luarc
require "tools/script_manager"
require "contrib/photils"

but the language of pluggin ist still always in english ... what's going wrong ?

or should i switch to the darktable-lua-github-queue ?

thanks & cheers

flemming

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.