GithubHelp home page GithubHelp logo

solai's Introduction

SolAI

Booming Decentralized Solar Power in Africa’s Cities. Satellite Imagery and Deep Learning Provide Cutting-Edge Data on Electrification

alt text

This github repository provides a simplified version of the code used in the project titled "Booming Decentralized Solar Power in Africa’s Cities. Satellite Imagery and Deep Learning Provide Cutting-Edge Data on Electrification." You can find the original paper published by the French Institute of International Relations (IFRI) here (and in french here).

The project provides an analysis of the decentralized solar capacity installed in 14 Sub-Saharan African cities, using data obtained from millions of satellite images. The findings reveal that the decentralized solar capacity in these cities is between 184 MW and 231 MW, which represents almost 10% of the centralized solar capacity installed in the region, excluding South Africa. The analysis suggests that extending the study to other African cities could increase this estimate.

Moreover, after crossing this database with Afrobarometer's latest geolocalized survey, the study highlights that people in high-income households are more likely to adopt decentralized solar systems, irrespective of the reliability of their power supply from centralized grids. This trend implies a gradual shift in power dynamics from national power grids to customers. As such, it presents an existential challenge to the electricity sectors in Sub-Saharan Africa, as their most solvent customers adopt hybrid power supply strategies.

We hope that the code used in this project can serve as a valuable resource for researchers and practitioners interested in analyzing the solar capacity and electrification trends in Africa's urban areas. Therefore, we have made it available on this GitHub repository for easy access and use. Please feel free to explore the code and adapt it to your needs.

Usage instructions

The code includes a classification and segmentation model. In this project, we have used Comet ML and Hydra to monitor and follow the training process.

To get started, please clone the repository using the command :

git clone https://github.com/hugotmdd/SolAI.git

and navigate to the "solAI" directory using :

cd solAI

You first need to add your training images in the folder /data/classification/images along with a csv comprising the image path and labels in /data/classification for the classification model, and in /data/segmentation/images and /data/segmentation/masks with a csv in /data/segmentation with their paths for the segmentation. You can also change the path to csv files directly in configs.

The next step is to build the image of the container by running :

docker build -t solAI .

After that, you can simply run the container by entering :

sudo docker run -it --gpus all --ipc=host --ulimit memlock=-1 --name=solAI -v $(pwd):/code solaria bash

To access the container, type :

docker container attach solAI

Once you are inside the container, you can start training the models. For classification, run :

python classification/train.py

and for segmentation, just run :

python segmentation/train.py

Please note that you also need to update the two config files, one in the classification folder and one in the segmentation folder, with your Comet ML API key before running the training.

You can detach from the container by pressing Ctrl-P followed by Ctrl-Q, and let it continue its training.

When training is completed, if you want to stop the container, use the command :

docker container stop solAI

and you can restart it later on and start a new training if you wish, with :

docker container start solAI

We hope you find our project useful and we welcome any feedback you may have !

Project coverage

A. Roussi, Solar power shines through after a slow start in Africa, Finantial Times, May 26 2022

E. Maussion, Sénégal, Burkina, Mali : quand les panneaux solaires arrivent en ville, Jeune Afrique, January 26 2022

C. Cosset, Électrification du continent africain: le «deep learning» au service de la recherche, RFI, May 04 2022

solai's People

Contributors

hugotmdd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.