How amantyagii/fire_smoke_severity_detection works
This is a batch fire-and-smoke severity analysis tool: it reads image files, runs a trained YOLO model, estimates fire and smoke coverage, assigns configurable severity levels, and reports detection counts. The process_firesmoke.py entry point also writes annotated images; process_fire_final.py draws annotations but does not save them in the shown code. The scripts contain their own severity calculations and reporting logic. The graph reflects the sampled source and README; no unshown runtime wiring is assumed.
Main entry points: process_firesmoke.py Annotated batch runner · process_fire_final.py Final batch runner · final_images Image dataset · config.py Severity thresholds
Components 12
Inputs and model
- Image dataset
dataset/final_images - YOLO weights
best.pt
Detection and severity
- Severity thresholds
config.py - Final batch runner
process_fire_final.py - Annotated batch runner
process_firesmoke.py - YOLO inference
process_firesmoke.py - Fire coverage severity
process_firesmoke.py - Smoke coverage severity
process_firesmoke.py
Results
- Image annotation
process_firesmoke.py - Annotated images
output/annotated - Detection statistics
process_firesmoke.py
Other components
- Console output
Connections 14
- Image dataset → Final batch runner: reads images
process_fire_final.py - Image dataset → Annotated batch runner: reads images
process_firesmoke.py - YOLO weights → YOLO inference: loads weights
process_firesmoke.py - Annotated batch runner → YOLO inference: runs inference
process_firesmoke.py - Annotated batch runner → Final batch runner
- Annotated batch runner → Fire coverage severity: calculates fire severity
process_firesmoke.py - Annotated batch runner → Smoke coverage severity: calculates smoke severity
process_firesmoke.py - Severity thresholds → Fire coverage severity: sets thresholds
process_firesmoke.py - Severity thresholds → Smoke coverage severity: sets thresholds
process_firesmoke.py - Annotated batch runner → Image annotation: draws detections
process_firesmoke.py - Image annotation → Annotated images: writes images
process_firesmoke.py - Annotated batch runner → Detection statistics: updates counts
process_firesmoke.py - Detection statistics → Console output: prints summary
process_firesmoke.py - Final batch runner → Console output: prints summary
process_fire_final.py