Skip to main content

A Python-based simulation framework for bionic vision

Project description

DOI BSD 3-clause PyPI build GitHub forks GitHub stars

pulse2percept: A Python-based simulation framework for bionic vision

By 2020 roughly 20 million people will suffer from retinal diseases such as macular degeneration or retinitis pigmentosa, and a variety of sight restoration technologies are being developed to target these diseases.

Retinal prostheses, now implanted in over 500 patients worldwide, electrically stimulate surviving cells in order to evoke neuronal responses that are interpreted by the brain as visual percepts (‘phosphenes’). However, interactions between the device electronics and the retinal neurophysiology result in perceptual distortions that may severely limit the quality of the generated visual experience:

Input stimulus and predicted percept

(left: input stimulus, right: predicted percept)

Built on the NumPy and SciPy stacks, pulse2percept provides an open-source implementation of a number of computational models for state-of-the-art visual prostheses (also known as the ‘bionic eye’), such as ArgusII and AlphaIMS, to provide insight into the visual experience provided by these devices.

Simulations such as the above are likely to be critical for providing realistic estimates of prosthetic vision, thus providing regulatory bodies with guidance into what sort of visual tests are appropriate for evaluating prosthetic performance, and improving current and future technology.

If you use pulse2percept in a scholarly publication, please cite as:

M Beyeler, GM Boynton, I Fine, A Rokem (2017). pulse2percept: A Python-based simulation framework for bionic vision. Proceedings of the 16th Python in Science Conference (SciPy), p.81-88, doi:10.25080/shinma-7f4c6e7-00c.

Installation

Once you have Python 3 and pip, the stable release of pulse2percept can be installed with pip:

pip3 install pulse2percept

In order to get the bleeding-edge version of pulse2percept, use the commands:

git clone https://github.com/pulse2percept/pulse2percept.git
cd pulse2percept
pip3 install .

When installing the bleeding-edge version on Windows, note that you will have to install your own C compiler first. Detailed instructions for different platforms can be found in our Installation Guide.

Dependencies

pulse2percept 0.4.3 was the last version to support Python 2.7 and 3.4. pulse2percept 0.5+ requires Python 3.5+.

pulse2percept requires:

  1. Python (>= 3.5)

  2. Cython (>= 0.28)

  3. NumPy (>= 1.9)

  4. SciPy (>= 1.0)

  5. Matplotlib (>= 2.1)

  6. JobLib (>= 0.11)

Optional packages:

  1. scikit-image for image functionality in the io module.

  2. scikit-video for video functionality in the io module. You will also need an FFMPEG codec (see next bullet point).

  3. ffmpeg codec if you’re on Windows and want to use functions in the io module.

  4. Pandas for loading datasets in the datasets module.

  5. Dask for parallel processing (a joblib alternative). Use conda to install.

  6. Pytest to run the test suite.

All required packages are listed in requirements.txt in the root directory of the git repository, and can be installed with the following command:

git clone https://github.com/pulse2percept/pulse2percept.git
cd pulse2percept
pip3 install -r requirements.txt

All packages required for development (including all optional packages) are listed in requirements-dev.txt and can be installed via:

pip3 install -r requirements-dev.txt

Where to go from here

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

pulse2percept-0.6.0.tar.gz (600.6 kB view hashes)

Uploaded Source

Built Distributions

pulse2percept-0.6.0-cp38-cp38-win_amd64.whl (436.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pulse2percept-0.6.0-cp38-cp38-win32.whl (371.7 kB view hashes)

Uploaded CPython 3.8 Windows x86

pulse2percept-0.6.0-cp38-cp38-manylinux2010_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pulse2percept-0.6.0-cp38-cp38-manylinux2010_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

pulse2percept-0.6.0-cp38-cp38-manylinux1_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8

pulse2percept-0.6.0-cp38-cp38-manylinux1_i686.whl (1.6 MB view hashes)

Uploaded CPython 3.8

pulse2percept-0.6.0-cp38-cp38-macosx_10_14_x86_64.whl (444.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pulse2percept-0.6.0-cp37-cp37m-win_amd64.whl (432.6 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pulse2percept-0.6.0-cp37-cp37m-win32.whl (367.0 kB view hashes)

Uploaded CPython 3.7m Windows x86

pulse2percept-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pulse2percept-0.6.0-cp37-cp37m-manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

pulse2percept-0.6.0-cp37-cp37m-manylinux1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m

pulse2percept-0.6.0-cp37-cp37m-manylinux1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.7m

pulse2percept-0.6.0-cp37-cp37m-macosx_10_14_intel.whl (722.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.14+ intel

pulse2percept-0.6.0-cp36-cp36m-win_amd64.whl (432.7 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pulse2percept-0.6.0-cp36-cp36m-win32.whl (367.3 kB view hashes)

Uploaded CPython 3.6m Windows x86

pulse2percept-0.6.0-cp36-cp36m-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

pulse2percept-0.6.0-cp36-cp36m-manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

pulse2percept-0.6.0-cp36-cp36m-manylinux1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.6m

pulse2percept-0.6.0-cp36-cp36m-manylinux1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.6m

pulse2percept-0.6.0-cp36-cp36m-macosx_10_14_intel.whl (721.2 kB view hashes)

Uploaded CPython 3.6m macOS 10.14+ intel

pulse2percept-0.6.0-cp35-cp35m-win_amd64.whl (428.9 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

pulse2percept-0.6.0-cp35-cp35m-win32.whl (364.4 kB view hashes)

Uploaded CPython 3.5m Windows x86

pulse2percept-0.6.0-cp35-cp35m-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

pulse2percept-0.6.0-cp35-cp35m-manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

pulse2percept-0.6.0-cp35-cp35m-manylinux1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.5m

pulse2percept-0.6.0-cp35-cp35m-manylinux1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.5m

pulse2percept-0.6.0-cp35-cp35m-macosx_10_14_intel.whl (707.9 kB view hashes)

Uploaded CPython 3.5m macOS 10.14+ intel

Supported by

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