Skip to main content

Argus Curator

PyPI Python License: MIT CI

Image curation and moderation: score, de-duplicate, and tag images by face, apparent age, scene and garment, then filter on those tags with a reason recorded for every exclusion. Use it on its own to audit or moderate an image collection, or as the LoRA data-prep front-end of the Argus suite, captioned downstream by argus-lens.

Two ways to use it:

  • Standalone moderation and dataset auditing. Scan a folder or call the HTTP API, review the per-image report, and keep, drop or quarantine images on criteria you choose. Nothing has to be trained or captioned. See Standalone moderation and dataset auditing.
  • The curation stage of the Argus suite, described below.

argus-curator is the curation stage of the Argus suite. Upstream, argus-quarry acquires provenance-clean images; curator decides which images, of whom, at what quality belong in a LoRA training set; argus-lens then decides what's in each image. Curator and lens share one TargetProfile, so a manifest written here is captioned downstream with no remapping.

   argus-quarry               argus-curator (:8101)      argus-lens (:8100)      imogen / kohya
   ─ download   ─┐            ─ scan + score ─┐          ─ caption ─┐            ─ train ─
   ─ provenance ─┤  images    ─ face-cluster ─┤ manifest ─ buckets ─┤  dataset   ─ LoRA  ─
   ─ verify ─────┴─────────►  ─ select ───────┴────────► (identity/ ─┴────────►  ───────►
                              ─ export ───────►          wardrobe/…)

A scan only reads the source folder (unless you ask for XMP sidecars beside the originals). It records, per image, its quality score, near-duplicate group, faces and identities, and whatever optional checks you turn on: apparent age and gender, scene, garments, nudity and a moderation policy verdict. An export then filters on that record and gives every excluded image a keep_reason, so the result doubles as an audit trail.

Why not FiftyOne / fastdup / Immich?

Generic CV curation (FiftyOne, fastdup) Consumer galleries (Immich, PhotoPrism) Argus Curator
Quality scoring Generic None Training-suitability (target-aware sharpness/res/artifact + face-count fit)
Dedup pHash Basic pHash, keeps best representative, reports the rest
Faces Plugin Clustering for browsing Clustering for dataset filtering (export by identity)
Dataset export Manual None Structure-preserving copy/symlink/move + manifest
Captioner handoff None None One shared TargetProfile → argus-lens
Moderation / audit Manual queries None Apparent-age, scene and garment filters, with a keep_reason for every exclusion

It's LoRA-native, identity-aware, and caption-integrated — the reason the suite exists.

The shared TargetProfile (the moat)

Both services speak the same taxonomy. This single schema is the contract:

from argus_curator import TargetProfile

TargetProfile(
    target_style="photo",        # "photo" | "anime"
    target_backend="sdxl",       # "sdxl" | "flux-dev-1" | ...
    checkpoint=None,
    target_category="identity",  # identity | wardrobe | pose_composition | setting | concept
)

The curator uses it to weight scoring and label exports; argus-lens inherits it verbatim. The style and category values are argus-cortex's (argus_cortex.taxonomy), the one copy the whole suite shares. concept is a style or visual-concept LoRA: face count never lowers its score, and clean, high-resolution images get the composition bonus.

Installation

pip install argus-curator                 # engine only (Pillow, numpy, ImageHash, pydantic)
pip install "argus-curator[server,cli]"   # FastAPI server + CLI
pip install "argus-curator[faces]"        # + InsightFace identity clustering (CPU onnxruntime)
pip install "argus-curator[gpu]"          # + onnxruntime-gpu for GPU face detection
pip install "argus-curator[speech]"       # + WAV/FLAC decoding and DNSMOS for speech scans
pip install "argus-curator[all]"          # everything

System libraries for the face stack (Ubuntu/Debian):

sudo apt install -y libgl1 libglib2.0-0 libgomp1

Face attributes, scenes, garments and semantic embeddings read ONNX models that are converted once (mivolo-convert, fairface-convert, places365-convert, garments-convert, embeddings-convert); each feature's page says how. The nudity, policy and watermark checks talk to their own servers over HTTP. A Docker image is published for CPU and GPU: see Docker and the GPU.

Quick start

Python

from argus_curator import scan_folder, TargetProfile, ScanConfig, FaceConfig

summary = scan_folder(
    "/data/images",
    profile=TargetProfile(target_category="identity"),
    cfg=ScanConfig(min_short_side=512, blur_threshold=100.0, cluster_distance=10),
    faces_cfg=FaceConfig(enabled=True, model="buffalo_l", cluster_eps=0.5),
)

print(summary.passed, "passed,", summary.duplicates, "near-dupes")
for fc in summary.face_clusters:
    print(fc.cluster_id, fc.size, "faces, rep:", fc.representative_rel_path)

CLI

# Report only — see the score distribution before committing to a threshold
argus-curator scan /data/images --csv report.csv

# Identity curation with face clustering, copy 0.65+ keepers (structure preserved)
argus-curator scan /data/images \
    --target-category identity --faces --device cuda \
    --min-score 0.65 --copy-to /data/curated

# Export only specific identities, capped to a diverse 200
argus-curator scan /data/images --faces \
    --face-clusters face_1,face_2 --max-keep 200 --copy-to /data/curated

# Pick a pose-balanced subset (head-on + 3/4 only, drop side profiles)
argus-curator scan /data/images --faces \
    --pose frontal,three_quarter --copy-to /data/curated

# Predict age in years and gender per face (MiVOLO), then keep adults up to 35
# whose gender prediction is confident
argus-curator scan /data/images --mivolo \
    --gender female --min-attr-conf 0.6 --min-age 25 --max-age 35 --copy-to /data/curated

# Which detectors are available?
argus-curator detectors

The full list of commands and options is in the CLI reference.

HTTP server

pip install "argus-curator[server,faces]"
argus-curator serve --cors --port 8101 --source-root /data/images --export-root /data/out

Scans and exports then run over HTTP (POST /scan/folder, POST /export); see the HTTP API. Each uploaded file is capped at CURATOR_MAX_UPLOAD_MB (default 50 MiB; a larger one gets 413).

An image with a MiVOLO age under 18 and any exposed nudity score in the frame is never kept, whatever the request. ARGUS_CURATOR_MINOR_EXPOSED=overlap narrows that to exposure on the young person's box; see the under-18 rule.

Documentation

Using curator

Checks and filters

  • Face attributes: MiVOLO age and gender, FairFace race, gender and age bracket, set age
  • Face sources: head pose, face sharpness, eyes and mouth, identity distance, the argus-mask preset
  • Scene tags: Places365 scenes and indoor/outdoor
  • Garments: Fashionpedia garments, colours and cut-off
  • Body pose: argus-puppet stance, arms and facing per image, and scan-level pose clusters
  • Nudity detection: NudeNet, the EraX second pass, content rating
  • Policy check: SingGuard verdicts, policies and context
  • Prefilter: drop images before the slow checks
  • Crops: watermarks and borders, given or detected
  • Speech scans: voice clips and transcripts: duration, clipping, silence, SNR, speech ratio, speaking rate, DNSMOS, near-duplicates; speaker clustering, hours per speaker and accent, a speaker-disjoint split, and speech_manifest.jsonl with corpus, licence or consent on every clip. Consumers join the relative export paths and treat the <stem>.txt as authoritative; a checked-in sample export is there to test against.

Export and handoff

Handoff to argus-lens

Export writes manifest.jsonl, one row per exported image, carrying the shared TargetProfile, the real exported path, and the primary face's measurements. argus-lens batch-captions it with no remapping; set caption_url on the export request to POST it straight to lens for a one-click curate-then-caption run. Only a host listed in CURATOR_CAPTION_ALLOWED_HOSTS is sent the manifest, public or not (comma-separated host or host:port, e.g. lens:8100; a bare host allows any port). Empty by default, so the hand-off is off until you name your lens: any other caption_url is refused with 400. The rows, their versions (currently 2.3) and the rule for consumers (refuse an unknown major) are in the manifest reference.

  • argus-quarry — provenance-first acquisition of public-domain / CC0 portraits (the suite's input stage).
  • argus-lens — intent-aware, multi-model captioning (consumes the manifest this package exports).
  • argus-studio — the suite's Next.js web UI (its /curate view drives this server).
  • argus-darkroom — guarded image generation; its records carry with an export under --carry-sidecars.
  • argus-mask — a talking face. docs/synthetic-face-sets.md shows how darkroom, curator and lens make its synthetic source portraits.

License

MIT — matches the rest of the Argus suite.

Metadata

Release files for argus-curator 0.22.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for argus-curator 0.22.0
File Size Uploaded Provenance Actions
argus_curator-0.22.0.tar.gz 680.2 kB With provenance Details for argus_curator-0.22.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argus-curator 0.22.0
File Interpreter ABI Platform Actions
argus_curator-0.22.0-py3-none-any.whl Python 3 none any Details for argus_curator-0.22.0-py3-none-any.whl

Total release size: 1.0 MB

Release files / argus_curator-0.22.0.tar.gz

Download URL argus_curator-0.22.0.tar.gz
Size 680.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f80c0d04ec2c3169c2f74bf6575c76fe5ee88905745f744dbb0730434a211f86
BLAKE2b-256 checksum
How to use checksums
0d075bb941d2e65b2f1d16b362fe160aa6d532c008e0ed8e5bc1bdce34ddaa99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / argus_curator-0.22.0-py3-none-any.whl

Download URL argus_curator-0.22.0-py3-none-any.whl
Size 325.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ea352f0588b83153f730cd94d1ec76c8cd1224e6f213456711612f37add9b1d
BLAKE2b-256 checksum
How to use checksums
77eb993e7a80fb689543747e15a8cc483d2be04d5cefa4ecb9d7f255b9054ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for argus-curator 0.22.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for argus_curator-0.22.0.tar.gz

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 Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.22.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page