ONNX Model Zoo

prithivMLmods/Fire-Detection-Engine-ONNX

By prithivMLmods · ↓ 11 · ♥ 3 · Updated 2025-02-04

What's in this repo

This page lists the files in prithivMLmods/Fire-Detection-Engine-ONNX, including model.onnx, model_bnb4.onnx, model_fp16.onnx and more.

  • 8 ONNX models (.onnx files)
  • 13 files, including 8 .onnx, 3 .json, 1 .md
  • Last updated 2025-02-04

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_bnb4.onnx — Download
onnx/model_fp16.onnx — Download
onnx/model_int8.onnx — Download
onnx/model_q4.onnx — Download
onnx/model_q4f16.onnx — Download
onnx/model_quantized.onnx — Download
onnx/model_uint8.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

ccccccccccccccccccccccccccc.png

Fire-Detection-Engine-ONNX

The Fire-Detection-Engine is a state-of-the-art deep learning model designed to detect fire-related conditions in images. It leverages the Vision Transformer (ViT) architecture, specifically the google/vit-base-patch16-224-in21k model, fine-tuned on a dataset of fire and non-fire images. The model is trained to classify images into one of the following categories: "Fire Needed Action," "Normal Conditions," or "Smoky Environment," making it a powerful tool for detecting fire hazards.

Classification report:

                    precision    recall  f1-score   support

Fire Needed Action     0.9708    0.9864    0.9785       808
 Normal Conditions     0.9872    0.9530    0.9698       808
 Smoky Environment     0.9818    1.0000    0.9908       808

          accuracy                         0.9798      2424
         macro avg     0.9799    0.9798    0.9797      2424
      weighted avg     0.9799    0.9798    0.9797      2424

download.png

Mappers

Mapping of IDs to Labels: {0: 'Fire Needed Action', 1: 'Normal Conditions', 2: 'Smoky Environment'} 

Mapping of Labels to IDs: {'Fire Needed Action': 0, 'Normal Conditions': 1, 'Smoky Environment': 2}

Key Features

  • Architecture: Vision Transformer (ViT) - google/vit-base-patch16-224-in21k.
  • Input: RGB images resized to 224x224 pixels.
  • Output: Binary classification ("Fire Needed Action" or "Normal Conditions" or "Smoky Environment").
  • Training Dataset: A curated dataset of fire place conditions.
  • Fine-Tuning: The model is fine-tuned using Hugging Face's Trainer API with advanced data augmentation techniques.
  • Performance: Achieves high accuracy and F1 score on validation and test datasets.

Model info

image-classification transformers.js
transformers.js onnx vit image-classification Fire-Detection-engine Precision-98 base_model:prithivMLmods/Fire-Detection-Engine base_model:quantized:prithivMLmods/Fire-Detection-Engine license:apache-2.0 region:us
↓ 11 ♥ 3

Created: 2025-02-03

Updated: 2025-02-04

View on Hugging Face

Files (13)

.gitattributes
README.md
config.json
onnx/model.onnx ONNX
onnx/model_bnb4.onnx ONNX
onnx/model_fp16.onnx ONNX
onnx/model_int8.onnx ONNX
onnx/model_q4.onnx ONNX
onnx/model_q4f16.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/model_uint8.onnx ONNX
preprocessor_config.json
quantize_config.json

Related models