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.
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.
To clone this repository to your local machine, use the following command:
$ git clone https://github.com/PiyushBagde/SolarMap.git Solar-map
The dataset used for training can be accessed on Roboflow:
👉 Solar Panel Detection Dataset
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.
The inference process for detecting solar panels is fully automated! Here’s how it works:
-
Image Access and Prediction:
- Access test images directly from Google Drive.
- Utilize SAHI’s tiled inference for accurate detection of small solar panels. Read more about this here 👉 Slicing Aided Hyper Inference
- Access test images directly from Google Drive.
-
Results Generation:
- Annotated images are saved in the corresponding Google Drive folder.
- Counts of detected solar panels are recorded.
-
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.
- Results, including image paths and panel counts, are saved in a CSV file named
-
File Management:
- Generated files are systematically stored in designated folders, keeping everything organized.
The SolarMap model, powered by YOLOv8 and SAHI (Slicing Aided Hyper Inference), has shown impressive performance in detecting small rooftop solar panels.
Metric | Value |
---|---|
mAP50 (B) | 80.22% |
mAP50-95 (B) | 63.65% |
Precision (B) | 86.05% |
Recall (B) | 73.68% |
-
SAHI Tiled Inference:
Enhanced detection of smaller solar panels by slicing images into manageable tiles, improving accuracy on high-resolution images. -
Training and Visualization:
Monitored in real-time using TensorBoard, ClearML, and Comet. Loss function steadily decreased with precision and recall stabilizing around 86.05%. -
Inference on Test Images:
Successfully detected and counted solar panels under various challenging conditions. -
Performance on Small Objects:
The model accurately identified tiny solar panels on rooftops, ensuring reliable counts.
You can download the trained model weights here:
👉 Download Weights
Here are a couple of examples of the model's output:
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!
This project was developed collaboratively by the following team members: