Skip to main content

Python Instance Eikonal Function Solver (PIEFS)

PIEFS is a library which solves the Eikonal Function for 2D and 3D instance masks, using the Fast Iterative Method. It achieves memory efficiency through a fused kernel written in OpenAI Triton. It also provides functionality to calculate gradients of the eikonal field.

This implementation uses convolutions to calculate affinity masks, which may be faster and can occur on cuda, however uses dense representations of the affinity masks and therefore is memory intensive. It may be possible for much of the mask operations to occur with sparse tensors for memory efficiency.

A big thanks to Kevin Cutler (Original Omnipose Author) for helping me create this.

Example:

import torch
from piefs import solve_eikonal, gradient_from_eikonal

image = torch.load('path/to/my/image.pt')  # An image with shape (B, C=1, X, Y, Z)
eikonal = solve_eikonal(image, eps=1e-5, min_steps=200, use_triton=True)  # A Distance map with shape (B, C=1, X, Y, Z)
gradients = gradient_from_eikonal(eikonal)  # A Gradient tensor with shape (B, C=3, X, Y, Z)

Metadata

Release files for piefs 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piefs 0.0.1
File Size Uploaded Provenance Actions
PIEFS-0.0.1.tar.gz 21.2 kB Without provenance Details for PIEFS-0.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for piefs 0.0.1
File Interpreter ABI Platform Actions
piefs-0.0.1-py3-none-any.whl Python 3 none any Details for piefs-0.0.1-py3-none-any.whl
PIEFS-0.0.1-py3-none-any.whl Python 3 none any Details for PIEFS-0.0.1-py3-none-any.whl

Total release size: 65.8 kB

Release files / PIEFS-0.0.1.tar.gz

Download URL PIEFS-0.0.1.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e54045cb363e4739ff85d7c5238094eac846cf4f8bd86e39482f86430f389e53
BLAKE2b-256 checksum
How to use checksums
de9ff03e3fdce67fd8996851e91f053c0ea412151edb8e9c50afafb7e14d5d1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / piefs-0.0.1-py3-none-any.whl

Download URL piefs-0.0.1-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85f6436599be271bcf81d51adedb68c04c07d015fa131dd461f2689279f2f9f8
BLAKE2b-256 checksum
How to use checksums
0e8596547482dff5df5a495295518ce2c7a6281981205bcdd07e2c2a9efd7f12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / PIEFS-0.0.1-py3-none-any.whl

Download URL PIEFS-0.0.1-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd48865b53fcfc624cdc25959d7b66f2f9dfe6757f8b41680cf6002638ea3212
BLAKE2b-256 checksum
How to use checksums
f6cc148c1f1ad2fbd6f217848ee0dd351fd9b3d83e8e4e6900328d81d7637c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Security for piefs 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page