A framework to easily train deep learning model on Imaging Atmospheric Cherenkov Telescopes data
Project description
GammaLearn
Deep Learning for Imaging Cherenkov Telescopes Data Analysis.
GammaLearn is a collaborative project to apply deep learning to the analysis of low-level Imaging Atmospheric Cherenkov Telescopes such as CTA. It provides a framework to easily train and apply models from a configuration file.
Table of Contents
Implementation
Dependencies
- PyTorch (>= 1.7)
- Numpy
- PyTables
- Matplotlib
- scikit-image
- PyTorch Lightning (>=1.4.6)
- TensorBoard
- IndexedConv (>=1.3)
- ctapipe
- dl1-data-handler
- lstchain (~0.7)
- torch-tb-profiler
Installation procedure
We recommend the use of Anaconda with Python 3.8.
Create the environment:
VERSION=0.8
wget https://gitlab.in2p3.fr/gammalearn/gammalearn/-/raw/v${VERSION}/environment.yml -O glearn_${VERSION}_env.yml
conda install mamba -n base -c conda-forge
mamba env create -f glearn_${VERSION}_env.yml
conda activate glearn
Note for OSX and/or no-gpu users: please edit the environment file to remove cudatoolkit
from the dependencies.
Install GammaLearn
- with pip (recommended for users)
pip install gammalearn==$VERSION
- or from source (for developpers):
git clone --depth 1 https://gitlab.in2p3.fr/gammalearn/gammalearn
cd gammalearn
pip install .
Usage
First activate your conda environment
To run an experiment
gammalearn path_to_your_experiment_settings_file.py
you can find an example of setting file in https://gitlab.lapp.in2p3.fr/GammaLearn/GammaLearn/-/tree/master/examples and some sample data in https://lapp-gitlab.in2p3.fr/GammaLearn/GammaLearn/share/data
To visualise the results from your experiment, GammaLearn integrates with GammaBoard that provides high-level metrics and plots to assess IACTs reconstruction performances
To visualise the convolution kernels of your trained network (experimental feature)
gexplore-net path_to_your_experiments experiment_name checkpoint_version
Contributing
Contributions are very much welcome.
Open an issue to first discuss potential changes/additions.
License
MIT License
Copyright (c), 2018, GammaLearn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Gammalearn-0.7.4.tar.gz
.
File metadata
- Download URL: Gammalearn-0.7.4.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7ecd1841b9c8d61bf792e2880d63e42c834aac341c19607918c46223617ca1 |
|
MD5 | 9f3512a8b294681af025d1d9e0c46be4 |
|
BLAKE2b-256 | 0c04f89f11b84924f87b94ee33f8080f3178f9d8f855639be9f927c262e97731 |