Skip to main content

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

  1. 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spherical_inr-0.2.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for spherical_inr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b9e38f14215f667be491772889475916cdb3ef4f434f9ddf98ad61bb1941c5ca
MD5 95d76fdc025336690910a16a97681def
BLAKE2b-256 3ef2726ba0af15be82e3b66908298e3b76d4aab218ac4e4a9a42db1abbf20748

See more details on using hashes here.

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

Hashes for spherical_inr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae00ed5cc5cea35b525518fe869647557c356d6cbf9c6b1b191919506e70f4b1
MD5 cd25d042aaf323ad334f333c3519110c
BLAKE2b-256 7459697f6cd91d14b7a57a0d04e2da900f3f8699d977e01049d79bb71be593f4

See more details on using hashes here.

Supported by

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