diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-01-07 23:26:05 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-01-18 18:31:09 +0100 |
commit | b4f28814b7f5cf1d2375963db81f554d470aef83 (patch) | |
tree | 6598b3076c270ba5f91a20fc2a47d4ed4e0408be /deeptagger/README.adoc | |
parent | 054078908a1e4c7429ea0f5a3a0605addfccc46c (diff) | |
download | gallery-b4f28814b7f5cf1d2375963db81f554d470aef83.tar.gz gallery-b4f28814b7f5cf1d2375963db81f554d470aef83.tar.xz gallery-b4f28814b7f5cf1d2375963db81f554d470aef83.zip |
Add a deep tagger in C++
Diffstat (limited to 'deeptagger/README.adoc')
-rw-r--r-- | deeptagger/README.adoc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/deeptagger/README.adoc b/deeptagger/README.adoc new file mode 100644 index 0000000..8ea83cc --- /dev/null +++ b/deeptagger/README.adoc @@ -0,0 +1,25 @@ +deeptagger +========== + +This is an automatic image tagger/classifier written in C++, +without using any Python, and primarily targets various anime models. + +Unfortunately, you will still need Python and some luck to prepare the models, +achieved by running download.sh. You will need about 20 gigabytes of space. + +Very little effort is made to make this work on non-Unix systems. + +Getting this to work +-------------------- +To build the evaluator, install a C++ compiler, CMake, and development packages +of GraphicsMagick and ONNX Runtime. + +Prebuilt ONNX Runtime can be most conveniently downloaded from +https://github.com/microsoft/onnxruntime/releases[GitHub releases]. +Remember to install CUDA packages, such as _nvidia-cudnn_ on Debian, +if you plan on using the GPU-enabled options. + + $ cmake -DONNXRuntime_ROOT=/path/to/onnxruntime -B build + $ cmake --build build + $ ./download.sh + $ build/deeptagger models/deepdanbooru-v3-20211112-sgd-e28.model image.jpg |