No project description provided
Project description
🌄 Overview
Pyrception is a simulation framework for biosensors. Currently, it provides the base ingredients for simulating key parts of the structural and functional elements of visual processing observed in the mammalian retina. The long-term goal of Pyrception is to support multiple sensory modalities (such as auditory, olfactory and tactile), and to provide methods for integrating those inputs into a unified multisensory input signal (such as spike trains). Alongside this, Pyrception can also serve as an input conversion for encoding raw multimodal sensory input into a uniform spike train suitable for processing with spiking neural networks.
🪛 Installation
You can install Pyrception from PyPI:
pip install pyrception
or directly from GitHub (optionally in development mode):
git clone git@github.com:cantordust/pyrception.git
cd pyrception
pip install -e .
♻️ Optional dependencies
Pyrception supports several dependency groups:
cli: Command-line interface.events: Support for processing events (including from event cameras).dev: Development tools (for testing, profiling, etc.).torch: PyTorch support.ipy: ipykernel & ipywidgets (for running inside notebooks).docs: Tools for building the documentation.all: All of the above.
Use the --group with pip to enable a dependency group (repeat for each group). For instance:
pip install -e . --group events --group docs
will pull in all dependencies necessary for event-based input and building the documentation.
⏯️ Usage
Please refer to the documentation, which contains step-by-step notebooks demonstrating how to use Pyrception with a static image and an RGB video. More notebooks are currently being developed, including sparse event input from an event camera. Stay tuned.
📈 Development
Please open an issue if you discover a bug, feature. That said, contributions are welcome!
To generate and view the documentation locally, clone the repository and run the MkDocs build pipeline (note that you have to install Pyrception with the docs dependency group):
git clone git@github.com:cantordust/pyrception.git
cd pyrception
pip install -e . --group docs
mkdocs build
Then, to view the documentation locally, start the MkDocs server:
mkdocs serve
📋 ToDo
Short-term
👁️ Visual package
- All major types of retinal cells.
- Receptors (raw input, Weber's law).
- Horizontal cells (mean local brightness, normalising feedback).
- Bipolar cells (positive and negative contrast, temporal filter, excitatory input to ganglion cells).
- Amacrine cells (inhibitory input to ganglion cells, modulatory signal to bipolar cells).
- Ganglion cells (spiking).
- Logpolar kernel arrangement.
- Uniform or Gaussian kernels.
- Arbitrary kernel, size, shape and orientation.
- 🚧 Colour vision (with colour opponency).
- 🚧 Temporal dynamics.
- 🚧 Events as input.
- Saccadic movements.
👂 Auditory package
WIP.
👃 Olfactory package
WIP.
🔧 Others
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrception-0.3.4.post2.tar.gz.
File metadata
- Download URL: pyrception-0.3.4.post2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9b76e18c22cef889c41337b16d0d6d502d58e39c86aeb0ccf27ab444e87b060
|
|
| MD5 |
7f4d7511db5be3f2ba0b89bed9a82ba8
|
|
| BLAKE2b-256 |
d84136416bdf4cb5154dc36b3a8b19aa180250f4a330f9be83abae8031dbb4ae
|
Provenance
The following attestation bundles were made for pyrception-0.3.4.post2.tar.gz:
Publisher:
pypi.yml on cantordust/pyrception
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrception-0.3.4.post2.tar.gz -
Subject digest:
b9b76e18c22cef889c41337b16d0d6d502d58e39c86aeb0ccf27ab444e87b060 - Sigstore transparency entry: 934623266
- Sigstore integration time:
-
Permalink:
cantordust/pyrception@c2bcd8e67f8a54e62107d5e780d4ef9f0a146bc5 -
Branch / Tag:
refs/tags/v0.3.4post2 - Owner: https://github.com/cantordust
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2bcd8e67f8a54e62107d5e780d4ef9f0a146bc5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyrception-0.3.4.post2-py3-none-any.whl.
File metadata
- Download URL: pyrception-0.3.4.post2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a985b685de1266a96cce1f03007bb994fa1635e8ebb1f98ae081582b955ff257
|
|
| MD5 |
8ceefd4ae591ecc065310e4de763dde2
|
|
| BLAKE2b-256 |
4e09c5f7f48d5991796db04d99352482511120d190ebc1273b9941a7fe085230
|
Provenance
The following attestation bundles were made for pyrception-0.3.4.post2-py3-none-any.whl:
Publisher:
pypi.yml on cantordust/pyrception
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrception-0.3.4.post2-py3-none-any.whl -
Subject digest:
a985b685de1266a96cce1f03007bb994fa1635e8ebb1f98ae081582b955ff257 - Sigstore transparency entry: 934623303
- Sigstore integration time:
-
Permalink:
cantordust/pyrception@c2bcd8e67f8a54e62107d5e780d4ef9f0a146bc5 -
Branch / Tag:
refs/tags/v0.3.4post2 - Owner: https://github.com/cantordust
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c2bcd8e67f8a54e62107d5e780d4ef9f0a146bc5 -
Trigger Event:
release
-
Statement type: