A package for spherical positional encoding
Project description
Spherical-Implicit-Neural-Representation
A package for spherical implicit neural representations using Herglotz-based positional encoding.
Installation
You can install the package from PyPI:
pip install spherical-inr
Or install the development version locally:
git clone https://github.com/yourusername/spherical_inr.git
cd spherical_inr
pip install -e .
Getting Started
Below is an example of how to instantiate and use the HerglotzNet module:
import torch
import spherical_inr as sph
# Parameters for the HerglotzNet
input_dim = 3
num_atoms = 16
hidden_layers = 2
hidden_features = 32
output_features = 8
omega0 = 1.0
unit_sphere = True
seed = 42
# Instantiate the network
model = sph.HerglotzNet(
input_dim = input_dim
num_atoms=num_atoms,
hidden_layers=hidden_layers,
hidden_features=hidden_features,
out_features=out_features,
omega0=omega0,
seed=seed,
unit_sphere = unit_sphere
)
# Example input
dummy_input = torch.randn(4, 3)
output = model(dummy_input)
print(output)
📚 References
- Théo Hanon, Nicolas Mil-Homens Cavaco, John Kiely, Laurent Jacques,
Herglotz-NET: Implicit Neural Representation of Spherical Data with Harmonic Positional Encoding,
arXiv preprint, 2025.
arXiv:2502.13777
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
spherical_inr-0.2.0.tar.gz
(7.0 kB
view details)
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 spherical_inr-0.2.0.tar.gz.
File metadata
- Download URL: spherical_inr-0.2.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e38f14215f667be491772889475916cdb3ef4f434f9ddf98ad61bb1941c5ca
|
|
| MD5 |
95d76fdc025336690910a16a97681def
|
|
| BLAKE2b-256 |
3ef2726ba0af15be82e3b66908298e3b76d4aab218ac4e4a9a42db1abbf20748
|
File details
Details for the file spherical_inr-0.2.0-py3-none-any.whl.
File metadata
- Download URL: spherical_inr-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae00ed5cc5cea35b525518fe869647557c356d6cbf9c6b1b191919506e70f4b1
|
|
| MD5 |
cd25d042aaf323ad334f333c3519110c
|
|
| BLAKE2b-256 |
7459697f6cd91d14b7a57a0d04e2da900f3f8699d977e01049d79bb71be593f4
|