Modular Python Library for Neural Cellular Automata
Project description
ncalib
A modular Python Library for handling Neural Cellular Automata.
Features
- Modular architecture for Neural Cellular Automata
- Easy-to-use API for building and training NCA models
- Extensible framework for custom implementations
Quickstart
Installation
Install ncalib from PyPI using pip:
pip install ncalib
Some examples and loggers are using Weights and Biases. To use them install the required dependencies using:
pip install ncalib[wandb]
Examples
Examples are found in examples. Currently there are following implementations:
- simple_nca.py - Original NCA reconstructing an image (Mordvintsev et al. (2020))
- simple_classifying_mnist.py - Self-classicying MNIST Digits (Randazzo et al. (2020) )
- image_segmentation.py/image_segmentation_hydra.py - NCA that can segment an image (with and without hydra) (Sandler et al. (2020))
- genome_nca.py - NCA that can be seeded with different genomes (Stovold (2023))
Development
This project uses uv for package management and distribution.
Setup Development Environment
# Clone the repository
git clone https://github.com/dwoiwode/ncalib.git
cd ncalib
# Install dependencies with uv
uv sync
# Install extra dependencies
uv sync --all-extras
Running Tests
Tests are run using pytest:
uv run pytest tests
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Links
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 ncalib-0.1.2.tar.gz.
File metadata
- Download URL: ncalib-0.1.2.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b2a34e07c3c9813557681f919177439ab0c163850459547a897606542cf2dd
|
|
| MD5 |
2a93da7a799c2ff3352ac990e54d2fd6
|
|
| BLAKE2b-256 |
6e41549f11faa02fa8565090828241adf5cf97cb84369910cd5c12b30dc7448f
|
File details
Details for the file ncalib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ncalib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 80.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50cce0818f06f3634cdb44af4ab8a30dc100806f646acabfed0377db9af23f55
|
|
| MD5 |
11ea42d68819a46eed9eb464f6213df1
|
|
| BLAKE2b-256 |
9ab6dc7986a4b1de351f42117c61a663d798e040a88e30d87cd25545c2e7a684
|