atasoyhus / CeNiN

An implementation of feed-forward phase of deep Convolutional Neural Networks in pure C#
Apache License 2.0
31 stars 10 forks source link

CLI? #1

Open tomhol opened 4 years ago

tomhol commented 4 years ago

Hi Huseyin,

I just woke up this morning with an idea of how would I filter my photos database (using digital cameras from circa 2001) and only pick images where is my dog. I thought it is gotta be some sort of AI. But I don't like cloud solutions and blackboxes. After a while of googling I found your CeNiN library and the ideas behind this 100% align with my ideas :) Lightweight, yet powerful, and transparent and simple code. Nice! Thing is, since I'm not very Microsoft-oriented developer, it is hard for me to use the DLL from C# or .NET project. A simple and versatile CLI would be nice. Just producing some sort of JSON or XML reports which would be possible to process and feed to any image-tagging tool etc.

Specially the "imagenet-vgg-verydeep-16.cenin" model is giving me promising results.

Thanks, Tom.

PS: I just installed the Intel MKL, and it is incredibly fast! Wow!

atasoyhus commented 4 years ago

Hi, If you want to make a search in your images using keywords, you can use ImageTagger for now. I will write another app that will allow indexing images and searching by image or keyword, with CLI support. Thanks.

tomhol commented 4 years ago

Thanks, I tried that already but I realized the ImageTagger does not work with the Intel MKL libraries, which speeds up things 10x or more. And the CeNiN_CSharp_Example.exe which works with the MKL cannot process multiple files at once or directory. I need to pick image files one by one, which is pointless when I want to process thousands of them :)

atasoyhus commented 4 years ago

I have just updated ImageTagger to make it able to work with the Intel MKL.

tomhol commented 4 years ago

Thanks, perfect. It works. Now, last thing :)
So far, the tags are contained in the ImageTagger app only. There is no way how to "export" them. The list view shows all images + keywords + probabilities , but there is no option to copy'n'paste or export. Can the app log the tags to stdout, or to some other log file? Or make the listview multi-select (ctrl+A) and clipboard friendly (ctrl+C). Anything which would provide an output will be greatly appreciated :) Thanks, Tom.