Skip to content

Deep learning project is designed to detect small-sized rooftop photovoltaic (PV) panels using satellite imagery

Notifications You must be signed in to change notification settings

PiyushBagde/SolarMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌞 SolarMap

Welcome to SolarMap! This deep learning project is designed to detect small-sized rooftop photovoltaic (PV) panels using satellite imagery. Goal is to provide valuable insights into the adoption of green energy, supporting sustainable infrastructure development.


🚀 What is SolarMap?

SolarMap is an AI-driven tool that analyzes satellite images to accurately identify rooftop solar panels. By counting and mapping these panels, we can gain insights into solar energy adoption in various regions, aiding energy planning and infrastructure development.


Cloning the Repository

To clone this repository to your local machine, use the following command:

$ git clone https://github.com/PiyushBagde/SolarMap.git Solar-map

📊 Dataset

The dataset used for training can be accessed on Roboflow:
👉 Solar Panel Detection Dataset


⚙️ Training the Model

Fine-tuning Process

We fine-tuned the YOLOv8m model with the following steps:

  • Initialization: Used pre-trained weights for better performance.
  • Hyperparameters: Optimized learning rate, batch size, and epochs.

🔄 Automated Inference Process

The inference process for detecting solar panels is fully automated! Here’s how it works:

  1. Image Access and Prediction:

    • Access test images directly from Google Drive.
  2. Results Generation:

    • Annotated images are saved in the corresponding Google Drive folder.
    • Counts of detected solar panels are recorded.
  3. Data Storage:

    • Results, including image paths and panel counts, are saved in a CSV file named panel_count.csv.
    • The CSV file is organized neatly in your Google Drive after processing.
  4. File Management:

    • Generated files are systematically stored in designated folders, keeping everything organized.

📈 Results

The SolarMap model, powered by YOLOv8 and SAHI (Slicing Aided Hyper Inference), has shown impressive performance in detecting small rooftop solar panels.

📊 Performance Metrics:

Metric Value
mAP50 (B) 80.22%
mAP50-95 (B) 63.65%
Precision (B) 86.05%
Recall (B) 73.68%

🎯 Key Takeaways:

  1. SAHI Tiled Inference:
    Enhanced detection of smaller solar panels by slicing images into manageable tiles, improving accuracy on high-resolution images.

  2. Training and Visualization:
    Monitored in real-time using TensorBoard, ClearML, and Comet. Loss function steadily decreased with precision and recall stabilizing around 86.05%.

  3. Inference on Test Images:
    Successfully detected and counted solar panels under various challenging conditions.

  4. Performance on Small Objects:
    The model accurately identified tiny solar panels on rooftops, ensuring reliable counts.


📥 Download Trained Model Weights

You can download the trained model weights here:
👉 Download Weights


🖼️ Output Examples

Here are a couple of examples of the model's output:

Detection 1 Detection 2


Thank you for exploring SolarMap! We hope this project helps advance the understanding and use of solar energy. If you have any questions or feedback, feel free to reach out!

Contributors

This project was developed collaboratively by the following team members:

About

Deep learning project is designed to detect small-sized rooftop photovoltaic (PV) panels using satellite imagery

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •