How akkoaya/yolo-vision-hub works
YOLO26 Vision Hub brings dataset handling, multi-framework training, experiment tracking, model export, and image/video inference together behind a Gradio UI and FastAPI API. The main workflow submits training through the service layer to Celery workers, which run a selected plugin and publish logs and metrics; users can then export or run inference. The graph also preserves authentication, project and experiment history, GPU coordination, and bilingual UI. Some branches are documented in the README or SOURCE INDEX but not fully sampled; those links are omitted where runtime ownership is not evidenced.
Main entry points: router.py REST API · pages Workflow pages · training_tasks.py Training workers · app.py Gradio interface
Components 24
User interfaces
- Gradio interface
app/ui/app.py - Workflow pages
app/ui/pages - Bilingual UI
app/ui/gradio_i18n.py - REST API
app/api/v1/router.py - FastAPI application
app/main.py
Vision workflows
- Training service
app/services/training_service.py - Inference engine
app/core/inferencer.py - Dataset operations
app/utils/dataset_ops.py - Dataset detection
app/utils/dataset_detection.py - Export service
app/services/export_service.py
Training runtime
- Training workers
app/tasks/training_tasks.py - Plugin registry
app/plugins/registry.py - Model plugins
app/plugins - GPU coordination
app/core/device.py - Experiment tracking
app/core/swanlab_tracker.py
Accounts and records
- Authentication
app/services/auth_service.py - Audit logging
app/services/audit_log_service.py - Project management
app/services/project_service.py - Domain records
app/models
Runtime services
- Redis queue and streams
- Celery task queue
app/tasks/celery_app.py - PostgreSQL
- SwanLab service
Other components
- Browser user
Connections 30
- Browser user → Gradio interface: uses
README.md - Browser user → REST API: requests
README.md - Gradio interface → Workflow pages: builds pages
app/ui/app.py - Gradio interface → Bilingual UI: localizes labels
app/ui/app.py - FastAPI application → REST API: mounts routes
app/main.py - FastAPI application → Gradio interface: mounts interface
app/main.py - Workflow pages → Training service: submits training
app/ui/pages/training.py - Training service → Celery task queue: enqueues jobs
app/services/training_service.py - Celery task queue → Training workers: dispatches tasks
app/tasks/training_tasks.py - Training workers → Plugin registry: selects plugin
app/tasks/training_tasks.py - Plugin registry → Model plugins: discovers plugins
app/plugins/registry.py - Training workers → GPU coordination: acquires GPU lock
app/tasks/training_tasks.py - Training workers → Redis queue and streams: publishes logs and metrics
app/tasks/training_tasks.py - Training workers → Experiment tracking: logs metrics
app/tasks/training_tasks.py - Workflow pages → Inference engine: runs inference
app/ui/pages/inference.py - REST API → Inference engine: runs inference
- Inference engine → GPU coordination: queries device
app/core/inferencer.py - Workflow pages → Dataset operations: manages datasets
- Workflow pages → Dataset detection: detects formats
- Workflow pages → Export service: requests exports
- REST API → Training service: submits training
- REST API → Authentication: authenticates
- REST API → Audit logging: records actions
- REST API → Inference engine: calls engine
- Training service → Domain records: stores experiments
app/services/training_service.py - Authentication → PostgreSQL: reads and writes users
app/services/auth_service.py - Audit logging → PostgreSQL: reads and writes logs
app/services/audit_log_service.py - Project management → PostgreSQL: reads and writes projects
- Experiment tracking → SwanLab service: tracks experiments
- Training workers → PostgreSQL: updates experiment records
app/tasks/training_tasks.py