FireDetectNet is an deep learning project that focuses on fire detection in UAV images using state-of-the-art convolutional neural networks (CNNs). This repository provides a comprehensive solution for training, evaluating, and deploying a robust fire detection model. My goal is to contribute to fire safety and emergency response efforts by automating the process of identifying fires in images. Whether you're interested in fire prevention or monitoring, FireDetectNet offers a powerful tool for image-based fire detection.
- Deep Learning Model: Utilizes a custom-designed CNN architecture for accurate fire detection.
- Data Augmentation: Enhances model robustness with data augmentation techniques.
- Training and Evaluation: Includes scripts for training the model and evaluating its performance.
- Sample Images: Provides sample images for quick model testing.
- Visualization: Offers tools to visualize training progress and model performance.
- Easy Integration: Seamlessly integrate the trained model into your applications for real-time fire detection.
These instructions will help you get started with using and contributing to FireDetectNet. To begin, clone the repository to your local machine:
git clone https://github.com/ArjunPramod/FireDetectNet.git
cd FireDetectNet- Introduction
- Setup
- Dataset
- Model Architecture
- Training
- Evaluation
- Prediction
- Visualization
- Results
- Usage
- License
This project focuses on detecting fires in UAV images using a convolutional neural network (CNN) model. The model is trained using a dataset of images containing both fire and non-fire scenes.
- Mount Google Drive:
from google.colab import drive drive.mount('/content/drive') - Set file paths:
model_name = "/content/drive/MyDrive/1_FDM/Models/FDM_v1.h5" train_data_path = "/content/drive/MyDrive/1_FDM/Data/Train" test_data_path = "/content/drive/MyDrive/1_FDM/Data/Test" - Prerequisites
Before you begin, ensure you have met the following requirements:
- Python 3
- TensorFlow/Keras
- OpenCV
- NumPy
- Matplotlib
- Seaborn
- The dataset is organized into train and test sets.
- Data loading and preprocessing functions are provided.
- The model architecture consists of convolutional layers, batch normalization, max-pooling, and dense layers.
- Dropout is applied to prevent overfitting.
- The train_and_save_fire_detection_model function trains the model.
- Data augmentation is applied during training.
- The model is evaluated on a test dataset.
- Classification report and confusion matrix are generated.
- Functions for preprocessing images and making predictions are provided.
- Sample images are predicted and visualized.
- Training the Model: Use the provided scripts to train the fire detection model on your dataset. Customize the model architecture and hyperparameters as needed.
- Evaluation: Evaluate the model's performance using test data and visualize the results, including accuracy and a confusion matrix.
- Prediction: Deploy the trained model to make predictions on new images for fire detection.
This project is licensed under the Attribution-NonCommercial-NoDerivs 4.0 International (CC BY-NC-ND 4.0) License.



