What you need
Hikari Index runs as a handful of containers. The simplest install puts them all on one machine, the one that has your video.
The machine#
- Docker with Compose, on a 64-bit x86 machine (amd64). The two workers are published for amd64 only (the one that reads video pins an amd64 FFmpeg build), so the machine with your video must be amd64; the gallery and the text encoder are also published for arm64, which matters only if you spread the parts across machines. Linux, or Docker Desktop on Windows.
- Your video, on that machine or mounted there. It is mounted read-only into one container and nothing writes to it.
- Internet to install and update. Installing downloads the published images from the GitHub Container Registry (the models are inside them); a GPU worker, built on your machine, also downloads its base and model weights. While it runs, nothing is downloaded, and nothing is ever uploaded.
Most of the testing so far is on Docker Desktop for Windows. The gallery, its database and the worker that reads video also run on a Linux NAS day to day. Other Linux hosts should work, and the one thing most likely to trip them up is file permissions, below.
File permissions (read this on Linux and NAS hosts)#
Every Hikari Index container runs as user id 10001, not as root (the database runs as its own image's user and looks after its own folder). That matters in two places:
- Your video folder. Mounting it read-only does not grant access. User
10001 needs read permission on the video files and permission to enter
every folder above them. NAS media folders are often owned by something
like
1026:100ornobody:userswith mode750or an ACL, which shuts 10001 out. Give that user read access (a wider mode, a group it can join, or an ACL entry) before the first run. - Data folders you choose yourself. By default the library lives in
Docker volumes and this sorts itself out. If you point
HIKARI_DATAorHIKARI_IMAGESat folders of your own (see Backups for why you might), those folders must be writable by 10001.
To check the video folder once the install is built, list it as the worker sees it:
docker compose run --rm --no-deps --entrypoint ls worker -la /source
A list of your files means user 10001 can get in; "Permission denied" means it cannot. On Docker Desktop for Windows this has not been a problem.
Disk#
For the images: about 15 GB with the CPU analyze worker, about 27 GB with the GPU one, measured on the 1.3.0 images, plus room for the GPU build itself. The GPU worker is built on an 18 GB base that holds CUDA and the models; keep that base, because updates rebuild the GPU worker from it. The CPU worker is a 9 GB image of its own and never needs the base. (1.3.0 added about 1.2 GB to each analyze worker for the camera-angle model.)
For the library, measured on one 24-minute 1080p episode:
| Stage | Size |
|---|---|
| While it waits for your review | about 1 GB (the picked frames and the ones the picker passed over, as lossless PNG) |
| After you finish reviewing it | about 160 MB of original frames |
| Web images, always | about 14 MB |
A 4K film is several times that. The extra frames are what let you bring in a frame the picker passed over; finishing an episode deletes them.
Somewhere to run the models#
The analyze worker describes the frames and picks the stills. It comes in two kinds:
- GPU: an NVIDIA card and the NVIDIA Container Toolkit (Docker Desktop on Windows has it built in through WSL 2).
- CPU: works on any machine. How it compares with a GPU depends on the processor; the times below show both.
It never needs your video, so it can also run on a second machine, for example a desktop with a GPU while the video lives on a NAS.
How long a 24-minute 1080p episode took on the maintainer's machines. The describe and pick times are on 1.3.0 and later; the other two are earlier measurements:
| Stage | Time |
|---|---|
| Find shots and pull frames | about 4 minutes |
| Describe and pick, GPU: RTX 4070, on a second machine | 5 to 7 minutes |
| Describe and pick, CPU: Core i5-12400 (6 cores, 2022), in the server itself | about 5 minutes |
| Describe and pick, CPU: Core i5-8279U (4 cores, 2019), on a second machine | 11 to 15 minutes |
| Web images | about 2.5 minutes |
And one CPU run held to 4 cores of a Core i7-13700K, to get closer to a NAS: describing and picking Big Buck Bunny (10 minutes of 4K, 129 candidate frames) took 8 minutes, and the analyze worker's memory peaked just under 1 GB.
These are the maintainer's own machines and shows, not a benchmark, and yours will differ. The RTX 4070 and i5-8279U times are where most of 75 and 59 episodes fell; the i5-12400 time is one episode, the same one the GPU took 5 minutes over, and it read its frames from a local disk where the other two read them over the network.
Shoko: optional, strongly recommended#
Shoko is a free anime collection manager that identifies your files and keeps series, episodes and files in order. Hikari Index is built to lean on it. With Shoko connected you search for a series, tick episodes or a whole season, and the library is grouped the way Shoko groups it; you never type a path.
Without Shoko it still works: you add files and folders by path and type the titles and episode numbers yourself. That is fine for a few films and slow for a large collection. Connect Shoko right after installing.