Demo package
Project description
Spyrit
Spyrit Toolbox aims to provide all the necessary tools for single-pixel imaging. Starting from simulation, reconstruction, and interface with DMD and spectrometers. The aim of this toolbox is to cover all aspects of single-pixel imaging : from simulation to experimental, we aim to provide tools to make realistic measurements and provide reconstruction algorithms.
Getting Started
User mode
The spyrit package is available for Linux, MacOs and Windows. You can install it with pypi (we recommend you to use virtual environment).
Linux and MacOs
pip install spyrit
Windows
On Windows you need first to install torch. Here it's cpu version, adapt to your configuration.
pip install requests torch==1.8.0+cpu torchvision==0.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install spyrit
Developper mode
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
First, you need to clone the repository
git clone --recurse-submodules https://github.com/openspyrit/spyrit.git
Then, you can install the spyrit package with python (we recommend you to use virtual environment)
Linux and MacOs
cd spyrit
pip install -e .
Windows
On Windows you need first to redo the symbolic link to fht inside the spyrit repository and then to install torch. Here it's cpu version, adapt to your configuration.
cd spyrit
rm -r -fo fht
cmd /c mklink /d fht spyrit\fht\fht
pip install requests torch==1.8.0+cpu torchvision==0.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install -e .
Versioning
To change the version of the package on pypi, you need to:
- change the version in setup.py to new_version
git commit setup.py -m "Towards new_version"
git tag -a new_version -m "new_version"
git push --follow-tags
Prerequisites
All the necessary packages and libraries are contained within the setup.py
file.
- numpy (==1.19.3)
- matplotlib
- scipy
- torch
- torchvision
- Pillow
- opencv-python
- imutils
- PyWavelets
- wget
- imageio
- fht (included as a submodule in spyrit/fht),
Test
To check that the installation has been a success, try running the following lines in yout python terminal :
import spyrit
End with an example of getting some data out of the system or using it for a little demo
import torch;
a = torch.randn(64,64);
A minimal exemple can be found here. To run it, you can do
cd spyrit
python .github/workflows/example.py
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- Antonio Tomas Lorente Mur - Initial work - Website
- Nicolas Ducros - Initial work - Website
- Sebastien Crombez - Initial work - [Website]
License
This project is licensed under the Creative Commons Attribution Share Alike 4.0 - see the LICENSE.md file for details
Acknowledgments
- Nicolas Barbey for his Fast Hadamard Transform implementation in python
- Jin LI for his implementation of Convolutional Gated Recurrent Units for PyTorch
- Erik Lindernoren 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 Distributions
Hashes for spyrit-0.13.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 046bca0341212c4ba98b14404c98351f62dd088d25fd1005984e050ae04af386 |
|
MD5 | b9e14f5e5bebd369ae64d59e59c56041 |
|
BLAKE2b-256 | a9ab6b163b7f50f5ffa9b56a7927926f251263c60fc823edbd9aa5dac6f64d6a |
Hashes for spyrit-0.13.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebfb477c31162caab61f65d2c9d2d3427ddce264d0e74cfb0c69d48de52e9191 |
|
MD5 | f85f2ad0d5994658196bbc348e17eef2 |
|
BLAKE2b-256 | f3c300de9d96fe7217138da7da94cd5e4013bc2b77ff68ba2af10082ae6c314a |
Hashes for spyrit-0.13.5-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75cdec026c454c5b69954da17f6fb038fb94307fe303d1732856a7ff154593b9 |
|
MD5 | e05ea2f2a96147a88b871d95b032d415 |
|
BLAKE2b-256 | 163df1e739bce774520f49808639450c0bcc77460071805d6560f4da7ad85b11 |
Hashes for spyrit-0.13.5-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd81cfc5326b8e931d36aa884af816378a22407740f740e9d5cd5706a4e94f0 |
|
MD5 | 022a95e84cb9ddeb51e96774d46b49bd |
|
BLAKE2b-256 | 94a3991eac5b77dbc970d33dfef8351f6a2b6b00f50105ed5784b62e57280f44 |
Hashes for spyrit-0.13.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53a94cd9661a392f0e2f409dc4fdc3b79fea9f242149c43282e89c1b351424a6 |
|
MD5 | 20241f11a56c6308e05ea611ce87f64c |
|
BLAKE2b-256 | 3a3defdc5c881572dd143e5f4f48360710ddf6782c213db87380244aeda61b99 |
Hashes for spyrit-0.13.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09d88d5679c1b123de16d9ec4fa1b7f1bd2d7fe908c7320b5701bad83426f81 |
|
MD5 | f7786da8bafe25649e927745567342f4 |
|
BLAKE2b-256 | ad524c82d5a237cd921f1259effc4e863cd91163a7b74d7c1418ab875189ff22 |
Hashes for spyrit-0.13.5-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4313b949dfb480528b5cc03774740d6ea3dc875b9c1f01a911640086f673c2d4 |
|
MD5 | 80fba99b4f8f67d0a3afc6a9027c615d |
|
BLAKE2b-256 | 6c97159e4c6ac1d5c784aa8a1f7aada6206237a7ff888afde678a399620ef6c7 |
Hashes for spyrit-0.13.5-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2743d546d17b79fce995cbf29862a7da5fc2718bb46cb761a2fbbcd2e09d55eb |
|
MD5 | 7cb386d070cef85ea8b8e03b63b2e3b1 |
|
BLAKE2b-256 | 33b836b2c5bb9eb12dd2b1acc544e1ec162fdee0d3bc9cab63d5fcbaf17214b6 |
Hashes for spyrit-0.13.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6545071754e617506febcbb051b021b1089e248ab59a8b2ccad4dedda5c88f4 |
|
MD5 | 4f83dfb06d66e95d81dc21d4b115b3b0 |
|
BLAKE2b-256 | 6f44903f8f41443814a0afabed0b1a55761a403ed6bfcdfa73920c81d55fd29d |
Hashes for spyrit-0.13.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e40cb24f55b3e620166340a54ffc1ef6d744a072b3c397ba1d09499fa743bd |
|
MD5 | 7c10c2448f2feafbb3b31d23afe8c8f3 |
|
BLAKE2b-256 | 3f41aafc6caa44b1c62fbd1e79011140e794a9c1cddc87c939839ae5238e2f25 |
Hashes for spyrit-0.13.5-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a87add0afdc77b335d422d0ed92742600d32c95ca536a6fbc61d6839d70a89a6 |
|
MD5 | 09b252a2756f9f03b3aba0761779fcb1 |
|
BLAKE2b-256 | 8cb117b0ebb74290c65d859890519cd2e74cf86e691f723645c037c6f950a002 |
Hashes for spyrit-0.13.5-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f979821e20814a7bde98f667fceb88e9ff347c9b754be3c11412886a658fe67 |
|
MD5 | 57a03155da82ffadaffa588f34d9a4b3 |
|
BLAKE2b-256 | 56326f4b99118cb8e1f18a3f4ddcf2cbff093e79c284d0427781c26ac92665f5 |