brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
predictionRuns Luminoth image and video predictions, demo web serving, and public Detector/read_image/vis_objects API workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill for Luminoth inference workflows: lumi predict over images
or videos, lumi server web, and the public Python API exposed as
Detector, read_image, and vis_objects.
Before acting, use the root router at ../../SKILL.md when the user's request may also involve installation, package-level troubleshooting, or another Luminoth workflow.
| User goal | Use this file | Notes and cross-links |
|---|---|---|
| Run one or many image predictions | references/workflows.md | Produces JSON lines for images and can save annotated images. |
| Run video predictions | references/workflows.md | Requires video dependencies; video JSON output is intentionally not emitted. |
| Predict a mixed directory of images and videos | references/workflows.md and scripts/check_prediction_inputs.py | The bundled checker reports recognized files, ignored suffixes, class-filter conflicts, and ffmpeg availability. |
| Serve the demo web app or call its POST API | references/workflows.md | This is a demo interface, not production serving. |
| Use Luminoth from Python | references/api-reference.md | Covers Detector(checkpoint=None, config=None, prob=0.7, classes=None), read_image(path), and vis_objects(...). |
| Diagnose prediction failures | references/troubleshooting.md | Includes missing checkpoint, missing ffmpeg, media format, web API, and CLI misuse cases. |
/api/<model_name>/predict/ usage.When a prediction request arrives, answer in this order:
accurate
alias should be used.--max-detections, or --min-prob need to be
mentioned in the final command.For CLI prediction jobs, especially mixed image/video directories, run the
bundled checker before invoking lumi predict:
# From this prediction sub-skill directory, or replace scripts/... with the
# absolute path to this bundled helper in the installed skill tree.
python scripts/check_prediction_inputs.py ./media --save-media-to ./preds --output ./preds/objects.json
The checker is self-contained and does not import Luminoth. It validates the media paths and flags that Luminoth's prediction CLI will otherwise skip, ignore, or fail on late.
The repository's prediction CLI and Flask demo are exposed by the installed
lumi entry point, so their source implementations are reference-only in this
skill. The bundled helper is a safe preflight tool rather than a copy of the
runtime prediction implementation: it performs no inference, network access,
checkpoint mutation, or writes except normal terminal output.