GithubHelp home page GithubHelp logo

marcoso96 / spyrit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openspyrit/spyrit

0.0 0.0 0.0 436 KB

A Python toolbox for deep image reconstruction, with emphasis on single-pixel imaging.

Home Page: https://spyrit.readthedocs.io/en/latest/

License: GNU Lesser General Public License v3.0

Python 99.90% Shell 0.10%

spyrit's Introduction

GitHub tag (latest by date) GitHub PyPI pyversions Docs

Spyrit

SPYRIT is a PyTorch-based toolbox for deep image reconstruction. While SPYRIT was originally designed for single-pixel image reconstruction, it can solve any linear reconstruction problem.

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. Adapt to your configuration. Two examples below.

CPU version using pip

pip install requests torch==1.8.0+cpu torchvision==0.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

GPU version using conda

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

Then install SPyRiT using pip

pip install spyrit

Developer 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 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 install torch. Here it's cpu version, adapt to your configuration.

NB: It may be necessary to run the following commands using administrator rights (e.g., starting your Python environment with administrator rights).

cd spyrit
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

API Documentation

https://spyrit.readthedocs.io/

Prerequisites

All the necessary packages and libraries are contained within the setup.py file.

  • numpy
  • matplotlib
  • scipy
  • torch
  • torchvision
  • Pillow
  • opencv-python
  • imutils
  • PyWavelets
  • wget
  • imageio

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, clone or download the file and you can do:

python 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

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

spyrit's People

Contributors

tbaudier avatar nducros avatar cmouton avatar guilhermebene 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.