Skip to content

b4dp0ssum/XnView.Markirator

Repository files navigation

XnView.Markirator

This is simple application that is designed to integrate DeepDanbooru (image tag estimation system) and XnView (image viewer). You can also use it to assign categories (tags) with XnView via JSON files (without using DeepDanbooru). scr_teaser

Installation

  1. Install Microsoft Visual C++ Redistributable
  2. Install Microsoft C++ Build Tools3
  3. Install Python
  4. Reboot PC
  5. Run XnView.Markirator.exe and install DeepDanbooru ("Settings" -> "Tags Evaluation" -> "Install DeepDanbooru"). Wait until the installation is complete (it may take a time).
  6. Setup XnView settings

xn_view_settings

How To Use

  1. Evaluate tags

scr_eval

After successful execution of this action, a new JSON file (text file with information about processed images) will appear in the EvaluatedTags folder in the application directory.

  1. Import tags to XnView

scr_import

Select JSON file from previous step and start import tags.

Import Data Format

The import command requires a JSON file with the following data structure:

[
  {
    "FilePath": "D:\\Images\\Catalog\\image1.jpg",
    "Tags": ["tag1", "tag2", "tag3"]
  },
  {
    "FilePath": "D:\\Images\\Catalog\\image2.jpg",
    "Tags": ["tag2", "tag5"]
  }
]

You only need this information if you want to set the tags manually without using DeepDanbooru.

Used Components

  1. DeepDanbooru
  2. Fugue Icons