📝 Classification_Progress_Report.mdv4.4 · 2026-09-05

Classification_Progress_Report.py — Reference

Purpose

A read-only progress report for the ISEmedia caption pass (SmolVLM through llama-mtmd-cli). It compares the caption store against the embedding store and shows whether a caption process is running right now.

Usage

python3 Classification_Progress_Report.py                    # uses /var/www/html/ISE_Data
python3 Classification_Progress_Report.py --data-dir /path # different data location
python3 Classification_Progress_Report.py --missing-out /tmp/x.txt

It works from any directory because all paths are absolute.

Inputs

File Location (default)
embeddings_store.json /var/www/html/ISE_Data/
captions_store.json /var/www/html/ISE_Data/

Both files can be a dict keyed by attachment, or a list of records that have attachment_id, id or file.

Output

Reading it

Observation Meaning
Store age is large, a process is running and the image changes between runs Working normally; the driver just hasn't saved yet
The same image and PID for many minutes That image has hung the caption call
No process running and missing > 0 The run ended or died with items left over; check the missing list
Orphans > 0 The two stores use different keys

Side effects

Writes only the missing-keys file. Never modifies the stores, and never signals or kills any process.

History