How nyn-05/vision_explainer works
Vision Explainer accepts an image and question, routes a YOLO26X task, uses Gemma vision reasoning to interpret the detections, and returns a persisted report with annotated artifacts. The graph preserves the documented seven-head and run-all modes, evidence/grounding, crop refinement, and history capabilities. Some internal calls are supported only by the README or SOURCE INDEX; unsampled details are not expanded.
Main entry points: app.py FastAPI routes · agents.py Analysis orchestrator · index.html Upload and results UI · services.py YOLO26X heads
Components 16
User Interface
- Upload and results UI
static/index.html - FastAPI routes
backend/app.py
Analysis Workflow
- Analysis orchestrator
backend/agents.py - Detector agent
backend/agents.py - Reasoner agent
backend/agents.py - Reporter agent
backend/agents.py - Evidence and grounding
backend/utils.py - Close-up crops
backend/utils.py - Prompt builders
backend/utils.py
Inference Services
- YOLO26X heads
backend/services.py - Task selection and validation
backend/services.py - Vision chat client
backend/services.py
Reports and History
- Run reports and artifacts
backend/agents.py - History log
backend/utils.py
Other components
- Image analyst
- Local llama.cpp server
Connections 20
- Image analyst → Upload and results UI: submits image
README.md - Upload and results UI → FastAPI routes: posts analysis
README.md - FastAPI routes → Analysis orchestrator: runs analysis
backend/app.py - FastAPI routes → YOLO26X heads: lists model heads
backend/app.py - FastAPI routes → Vision chat client: checks health
backend/app.py - FastAPI routes → History log: reads history
backend/app.py - Analysis orchestrator → Detector agent: dispatches detection
backend/agents.py - Detector agent → YOLO26X heads: predicts with
backend/agents.py - YOLO26X heads → Task selection and validation: routes task
README.md - Analysis orchestrator → Close-up crops: creates crops
backend/agents.py - Analysis orchestrator → Evidence and grounding: builds evidence
backend/agents.py - Analysis orchestrator → Reasoner agent: requests reasoning
backend/agents.py - Reasoner agent → Prompt builders: builds prompt
README.md - Reasoner agent → Vision chat client: requests vision reasoning
README.md - Vision chat client → Local llama.cpp server: sends vision chat
README.md - Analysis orchestrator → Reporter agent: builds final report
README.md - Reporter agent → Run reports and artifacts: persists artifacts
backend/agents.py - Reporter agent → History log: appends history
backend/utils.py - FastAPI routes → Upload and results UI: serves interface
backend/app.py - Upload and results UI → Run reports and artifacts: views run outputs
README.md