Toolbox for deep image reconstruction
Project description
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/openspyrit/spyrit?logo=github) [![GitHub](https://img.shields.io/github/license/openspyrit/spyrit?style=plastic)](https://github.com/openspyrit/spyrit/blob/master/LICENSE.md) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/spyrit.svg)](https://pypi.python.org/pypi/spyrit/) [![Docs](https://readthedocs.org/projects/spyrit/badge/?version=master&style=flat)](https://spyrit.readthedocs.io/en/master/)
# SPyRiT SPyRiT is a [PyTorch](<https://pytorch.org/>)-based deep image reconstruction package primarily designed for single-pixel imaging.
# Installation The spyrit package is available for Linux, MacOs and Windows. We recommend to use a virtual environment. ## Linux and MacOs (user mode) ` pip install spyrit ` (developper mode) ` git clone https://github.com/openspyrit/spyrit.git cd spyrit pip install -e . `
## Windows On Windows you may need to install PyTorch first. It may also be necessary to run the following commands using administrator rights (e.g., starting your Python environment with administrator rights).
Adapt the two examples below to your configuration (see [here](https://pytorch.org/get-started/locally/) for the latest instructions)
(CPU version using pip)
` pip3 install torch torchvision torchaudio `
(GPU version using conda)
` shell conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia `
Then, install SPyRiT using pip.
## Test To check the installation, run in your python terminal: ` import spyrit `
## Get started - Examples To start, check the [documentation tutorials](https://spyrit.readthedocs.io/en/master/gallery/index.html). These tutorials must be runned from tutorial folder (they load image samples from spyrit/images/): ` cd spyrit/tutorial/ `
More advanced reconstruction examples can be found in [spyrit-examples/tutorial](https://github.com/openspyrit/spyrit-examples/tree/master/tutorial). Run advanced tutorial in colab: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/openspyrit/spyrit-examples/blob/master/tutorial/tuto_core_2d_drunet.ipynb)
# API Documentation https://spyrit.readthedocs.io/
# Contributors (alphabetical order) * Juan Abascal - [Website](https://juanabascal78.wixsite.com/juan-abascal-webpage) * Thomas Baudier * Sebastien Crombez * Nicolas Ducros - [Website](https://www.creatis.insa-lyon.fr/~ducros/WebPage/index.html) * Antonio Tomas Lorente Mur - [Website]( https://sites.google.com/view/antonio-lorente-mur/) * Romain Phan * Fadoua Taia-Alaoui
# How to cite? When using SPyRiT in scientific publications, please cite the following paper:
Beneti-Martin, L Mahieu-Williame, T Baudier, N Ducros, “OpenSpyrit: an Ecosystem for Reproducible Single-Pixel Hyperspectral Imaging,” Optics Express, Vol. 31, No. 10, (2023). https://doi.org/10.1364/OE.483937.
When using SPyRiT specifically for the denoised completion network, please cite the following paper:
A Lorente Mur, P Leclerc, F Peyrin, and N Ducros, “Single-pixel image reconstruction from experimental data using neural networks,” Opt. Express 29, 17097-17110 (2021). https://doi.org/10.1364/OE.424228.
# License This project is licensed under the LGPL-3.0 license - see the [LICENSE.md](LICENSE.md) file for details
# Acknowledgments * [Jin LI](https://github.com/happyjin/ConvGRU-pytorch) for his implementation of Convolutional Gated Recurrent Units for PyTorch * [Erik Lindernoren](https://github.com/eriklindernoren/Action-Recognition) for his processing of the UCF-101 Dataset.
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
Built Distribution
File details
Details for the file spyrit-2.3.3.tar.gz
.
File metadata
- Download URL: spyrit-2.3.3.tar.gz
- Upload date:
- Size: 122.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11019fc5a099de6468f9d14cdff73a69e1fe5fa732225d6c3d28e1818d9deaa5 |
|
MD5 | 1ac809db666003a19779f773985942b8 |
|
BLAKE2b-256 | 0964e342dffd289ee8878ac05b11cb53cdae568cc89bd96e861b1ae598972e06 |
File details
Details for the file spyrit-2.3.3-py3-none-any.whl
.
File metadata
- Download URL: spyrit-2.3.3-py3-none-any.whl
- Upload date:
- Size: 168.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9f0107198a9bab92cb6ddc83b28584f48e8f8c07aafc4a87f23f46da8c2b1a6 |
|
MD5 | 0b0b7211841dac48c3b14b8269417b20 |
|
BLAKE2b-256 | 02b85667d01ac751af23e9bc60bd5d73cb39e47ab0956675246d9f62b8a4efa7 |