DetFill-with-DHT: Deterministic Hints and Hint-AUC for Line Art Colorization
Official implementation of "Hint-AUC: Deterministic Region-based Hint Generation for Line Art Colorization Evaluation", IEEE Transactions on Visualization and Computer Graphics (TVCG), 2026.
Koki Madono · Yuan Mingcheng · Edgar Simo-Serra — Waseda University
Paper · Library on PyPI · Checkpoints and data
Hint-based line art colorization is usually evaluated with randomly sampled colour hints, so the scores change from run to run. This repository provides DHT, a deterministic hint generator that turns an illustration into the same scribble and dot hints every time; Hint-AUC, one score over the whole range of hint ratios, from no hints to fully hinted; and DetFill, a pixel-space diffusion colorization model trained with these hints. All checkpoints, the evaluation inputs and the scripts that reproduce the paper are released.
Getting started
- Installation — see Setup. The library is one command (
pip install hintauc); DetFill and the reproduction scripts use a conda environment that the scripts create for you. - Model zoo — see Model zoo: every released checkpoint and data file with its size, SHA-256, download link and the paper item it belongs to.
- Reproducing the paper — see Reproducing the paper: Fig. 9 with one command (the Replicability-Stamp script), every table rebuilt from the released metrics, every experiment re-run on example images, full table rows, and training.
- Added features (since the paper) for improving our library — see Added features.
- How it works — see Detailed explanation: each component, what is bit-exact and what is not.
Quick start
import hintauc
hints = hintauc.generate_hints("illustration.png", size=64) # image -> deterministic hints
color, mask = hints.at_ratio(0.10, hint_type="scribble") # hints of the largest 10 % of the regions
hints.save("out/illustration") # files in the DetFill data layout
evaluator = hintauc.Evaluator(metrics=("psnr", "lpips", "dreamsim"))
print(evaluator("colorized.png", "ground_truth.png")) # the paper's metrics
- Command line:
hintauc generate image.png --ratio 0.1andhintauc eval pred_dir gt_dir --metrics mse psnr ssim. - DetFill inference over the hint-ratio grid:
cd detfill && GPU=0 bash run_inference.sh scribble(data layout and options in detfill/README.md). - Fig. 9 of the paper from a fresh checkout:
bash replicability/run.sh(about 3 minutes on a GPU).
Repository structure
docs/ setup, added features, detailed explanation
replicability/ one-command reproduction of Fig. 9 (Replicability-Stamp entry point)
reproduce/ reproduction package: scripts/, examples/, expected/ (released metrics), data/, paper_experiments/
hintauc/ the library: hints.py, metrics.py, auc.py, cli.py
detfill/ the DetFill model (BBDM fork): training, inference, configs
hint_generation/ original research scripts behind the library
evaluation/ original evaluation scripts
checkpoints/ model zoo: inventory of all released files with hashes
assets/ images for this page; representative image for the Replicability Stamp
License
MIT License (LICENSE); third-party components are listed in THIRD_PARTY_NOTICES.md.
detfill/ is built on BBDM (MIT). Released data files are derived from
Danbooru2021 illustrations and are provided for non-commercial research use only.
Contributing
Contributions are welcome. See contributing and the code of conduct.
Citing
@article{madono2026hintauc,
title = {Hint-AUC: Deterministic Region-based Hint Generation for Line Art Colorization Evaluation},
author = {Madono, Koki and Mingcheng, Yuan and Simo-Serra, Edgar},
journal = {IEEE Transactions on Visualization and Computer Graphics},
year = {2026},
doi = {10.1109/TVCG.2026.3738401}
}
Metadata
Release files for hintauc 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hintauc-0.2.1.tar.gz | 26.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hintauc-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.1 kB
Release files / hintauc-0.2.1.tar.gz
| Download URL | hintauc-0.2.1.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec8c23e3cf75914e39af4cd473b6e0472a500e0b05161e92bb94b80f71e5c9c6
|
|
BLAKE2b-256 checksum How to use checksums |
3ad96c1ee295fe7725ae1b6a00fab7a7ab3bb70d34ea7dc4508baf07a9dcde1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / hintauc-0.2.1-py3-none-any.whl
| Download URL | hintauc-0.2.1-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfc6d5f17c54431d6ee2936304e854069373930128d93bba735ed25faaefdad5
|
|
BLAKE2b-256 checksum How to use checksums |
2a10d8a074cc2f62a3af89b86b889b3fef37c975b4ca5af1215ce266f038ca19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log