prithivMLmods commited on
Commit
7030100
·
verified ·
1 Parent(s): 6d20ff0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -1
README.md CHANGED
@@ -8,6 +8,11 @@ tags:
8
  - Fire-Detection-engine
9
  - Precision-98
10
  ---
 
 
 
 
 
11
 
12
  ```
13
  Classification report:
@@ -23,4 +28,21 @@ Fire Needed Action 0.9708 0.9864 0.9785 808
23
  weighted avg 0.9799 0.9798 0.9797 2424
24
  ```
25
 
26
- ![download.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/kDS5cVee2ZVOv92rY0lGw.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  - Fire-Detection-engine
9
  - Precision-98
10
  ---
11
+ ![uioashedfvg.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/V9KmK7VrvuqyhD3S8eO7Z.png)
12
+
13
+ # **Fire-Detection-Engine**
14
+
15
+ 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.
16
 
17
  ```
18
  Classification report:
 
28
  weighted avg 0.9799 0.9798 0.9797 2424
29
  ```
30
 
31
+ ![download.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/kDS5cVee2ZVOv92rY0lGw.png)
32
+
33
+
34
+ # **Mappers**
35
+
36
+ ```python
37
+ Mapping of IDs to Labels: {0: 'Fire Needed Action', 1: 'Normal Conditions', 2: 'Smoky Environment'}
38
+
39
+ Mapping of Labels to IDs: {'Fire Needed Action': 0, 'Normal Conditions': 1, 'Smoky Environment': 2}
40
+ ```
41
+
42
+ # **Key Features**
43
+ - **Architecture**: Vision Transformer (ViT) - `google/vit-base-patch16-224-in21k`.
44
+ - **Input**: RGB images resized to 224x224 pixels.
45
+ - **Output**: Binary classification ("Fire Needed Action" or "Normal Conditions" or "Smoky Environment").
46
+ - **Training Dataset**: A curated dataset of fire place conditions.
47
+ - **Fine-Tuning**: The model is fine-tuned using Hugging Face's `Trainer` API with advanced data augmentation techniques.
48
+ - **Performance**: Achieves high accuracy and F1 score on validation and test datasets.