Skip to main content

Toolbox for deep image reconstruction

Project description

GitHub tag (latest by date) GitHub PyPI pyversions Docs

SPyRiT

SPyRiT is a PyTorch-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 for the latest instructions)

(CPU version using pip)

pip3 install torch torchvision torchaudio

(GPU version using conda)

conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia

Then, install SPyRiT using pip:

(user mode)

pip install spyrit

(developper mode)

git clone https://github.com/openspyrit/spyrit.git
cd spyrit
pip install -e .

Test

To check the installation, run in your python terminal:

import spyrit

Get started - Examples

To start, check the documentation tutorials. 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. Run advanced tutorial in colab: Open In Colab

API Documentation

https://spyrit.readthedocs.io/

Contributors (alphabetical order)

  • Juan Abascal - Website
  • Thomas Baudier
  • Sebastien Crombez
  • Nicolas Ducros - Website
  • Antonio Tomas Lorente Mur - Website
  • Romain Phan
  • Fadoua Taia-Alaoui

How to cite?

When using SPyRiT in scientific publications, please cite the following paper:

  • G. 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 file for details

Acknowledgments

  • Jin LI for his implementation of Convolutional Gated Recurrent Units for PyTorch
  • Erik Lindernoren for his processing of the UCF-101 Dataset.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spyrit-3.0.3.tar.gz (157.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spyrit-3.0.3-py3-none-any.whl (196.6 kB view details)

Uploaded Python 3

File details

Details for the file spyrit-3.0.3.tar.gz.

File metadata

  • Download URL: spyrit-3.0.3.tar.gz
  • Upload date:
  • Size: 157.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spyrit-3.0.3.tar.gz
Algorithm Hash digest
SHA256 c483ee891f8603f37693ed863a69b05154c2a5e7affafe95cbe313c811ee250a
MD5 a47ddb18be8588df28466f67cbd2e2d1
BLAKE2b-256 e8c291f0dc048e67e228d678b1feed4f061b0a4a2c071630aca4d2d3e47a4ab7

See more details on using hashes here.

File details

Details for the file spyrit-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: spyrit-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 196.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spyrit-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1e13241b07ce8d643d1eefd9f43817631af2492271aa6a5d7008163b11a48677
MD5 9a3b3c6ad4c3dc264df03950c6d25503
BLAKE2b-256 de5518a9e6071f9e69286a48b87b4e01def82c00d65c2b025ff59e72565ca12f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page