Skip to main content

torch-cubic-b-spline-grid

License PyPI Python Version CI codecov

Cubic B-spline interpolation on multidimensional grids in PyTorch.

The primary goal of this package is to provide a learnable, continuous parametrization of 1-4D spaces.


This is a PyTorch implementation of the model used in Warp for continuous deformation fields and locally variable optical parameters in cryo-EM images. The approach is described in Dimitry Tegunov's paper:

Many methods in Warp are based on a continuous parametrization of 1- to 3-dimensional spaces. This parameterization is achieved by spline interpolation between points on a coarse, uniform grid, which is computationally efficient. A grid extends over the entirety of each dimension that needs to be modeled. The grid resolution is defined by the number of control points in each dimension and is scaled according to physical constraints (for example, the number of frames or pixels) and available signal. The latter provides regularization to prevent overfitting of sparse data with too many parameters. When a parameter described by the grid is retrieved for a point in space (and time), for example for a particle (frame), B-spline interpolation is performed at that point on the grid. To fit a grid’s parameters, in general, a cost function associated with the interpolants at specific positions on the grid is optimized.

Metadata

Release files for torch-cubic-b-spline-grid 0.0.2

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

Source distribution (sdist)

Source distribution for torch-cubic-b-spline-grid 0.0.2
File Size Uploaded Provenance
torch_cubic_b_spline_grid-0.0.2.tar.gz 148.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for torch-cubic-b-spline-grid 0.0.2
File Interpreter ABI Platform
torch_cubic_b_spline_grid-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 159.7 kB

Release files / torch_cubic_b_spline_grid-0.0.2.tar.gz

Download URL torch_cubic_b_spline_grid-0.0.2.tar.gz
Size 148.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2c0e91fd7af0f39881464f9b50c8c76335d4f2dd3710f372f218adc2e4c502c5
BLAKE2b-256 checksum
How to use checksums
edc6c88805442c2434d1895b990198f4818ee9e8b3023eebe0b07f7064921f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / torch_cubic_b_spline_grid-0.0.2-py3-none-any.whl

Download URL torch_cubic_b_spline_grid-0.0.2-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2300ea9a90cbbd0e688e17c4cfc14779a74addc948f00a8ee69c8dbf396e1bb
BLAKE2b-256 checksum
How to use checksums
cf00afd1214099545c4af1927936dce390803ded5abac235c063c1fb7d05f74c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for torch-cubic-b-spline-grid 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 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