Name | torch-cubic-b-spline-grid JSON |
Version |
0.0.1
JSON |
| download |
home_page | |
Summary | Cubic B-spline interpolation on multidimensional grids in PyTorch |
upload_time | 2023-02-01 10:58:38 |
maintainer | |
docs_url | None |
author | Alister Burt |
requires_python | >=3.8 |
license | BSD 3-Clause License |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# torch-cubic-b-spline-grid
[![License](https://img.shields.io/pypi/l/torch-cubic-b-spline-grid.svg?color=green)](https://github.com/alisterburt/torch-cubic-b-spline-grid/raw/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/torch-cubic-b-spline-grid.svg?color=green)](https://pypi.org/project/torch-cubic-b-spline-grid)
[![Python Version](https://img.shields.io/pypi/pyversions/torch-cubic-b-spline-grid.svg?color=green)](https://python.org)
[![CI](https://github.com/alisterburt/torch-cubic-b-spline-grid/actions/workflows/ci.yml/badge.svg)](https://github.com/alisterburt/torch-cubic-b-spline-grid/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/alisterburt/torch-cubic-b-spline-grid/branch/main/graph/badge.svg)](https://codecov.io/gh/alisterburt/torch-cubic-b-spline-grid)
_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](http://warpem.com/warp/#) for continuous deformation
fields and locally variable optical parameters in cryo-EM images. The approach is described in
[Dimitry Tegunov's paper](https://doi.org/10.1038/s41592-019-0580-y):
> 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.
Raw data
{
"_id": null,
"home_page": "",
"name": "torch-cubic-b-spline-grid",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Alister Burt",
"author_email": "alisterburt@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b3/35/7e7a40ae2eafd8dce62a31d5be73510baf36f877d91d2d3b36107f9656c0/torch_cubic_b_spline_grid-0.0.1.tar.gz",
"platform": null,
"description": "# torch-cubic-b-spline-grid\n\n[![License](https://img.shields.io/pypi/l/torch-cubic-b-spline-grid.svg?color=green)](https://github.com/alisterburt/torch-cubic-b-spline-grid/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/torch-cubic-b-spline-grid.svg?color=green)](https://pypi.org/project/torch-cubic-b-spline-grid)\n[![Python Version](https://img.shields.io/pypi/pyversions/torch-cubic-b-spline-grid.svg?color=green)](https://python.org)\n[![CI](https://github.com/alisterburt/torch-cubic-b-spline-grid/actions/workflows/ci.yml/badge.svg)](https://github.com/alisterburt/torch-cubic-b-spline-grid/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/alisterburt/torch-cubic-b-spline-grid/branch/main/graph/badge.svg)](https://codecov.io/gh/alisterburt/torch-cubic-b-spline-grid)\n\n_Cubic B-spline interpolation on multidimensional grids in PyTorch._\n\nThe primary goal of this package is to provide a learnable, continuous\nparametrization of 1-4D spaces.\n\n--- \n\nThis is a PyTorch implementation of the model used in\n[Warp](http://warpem.com/warp/#) for continuous deformation\nfields and locally variable optical parameters in cryo-EM images. The approach is described in\n[Dimitry Tegunov's paper](https://doi.org/10.1038/s41592-019-0580-y):\n\n> Many methods in Warp are based on a continuous parametrization of 1- to\n> 3-dimensional spaces.\n> This parameterization is achieved by spline interpolation between points on a coarse,\n> uniform grid, which is computationally efficient.\n> A grid extends over the entirety of each dimension that needs to be modeled.\n> The grid resolution is defined by the number of control points in each dimension\n> and is scaled according to physical constraints\n> (for example, the number of frames or pixels) and available signal.\n> The latter provides regularization to prevent overfitting of sparse data with too many\n> parameters.\n> When a parameter described by the grid is retrieved for a point in space (and time),\n> for example for a particle (frame), B-spline interpolation is performed at that point\n> on the grid.\n> To fit a grid\u2019s parameters, in general, a cost function associated with the\n> interpolants at specific positions on the grid is optimized. \n",
"bugtrack_url": null,
"license": "BSD 3-Clause License",
"summary": "Cubic B-spline interpolation on multidimensional grids in PyTorch",
"version": "0.0.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3691e88c14c98ef4e42046cf7ab5f0832d344451f670a30e269ebf7de450deca",
"md5": "b64137d59a8d224cd2b92acd82e5f911",
"sha256": "7f822117b2ea2ed15f861130cbd80e4e4a0d8b3072a6989c068635576f5241c1"
},
"downloads": -1,
"filename": "torch_cubic_b_spline_grid-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b64137d59a8d224cd2b92acd82e5f911",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 10779,
"upload_time": "2023-02-01T10:58:36",
"upload_time_iso_8601": "2023-02-01T10:58:36.812166Z",
"url": "https://files.pythonhosted.org/packages/36/91/e88c14c98ef4e42046cf7ab5f0832d344451f670a30e269ebf7de450deca/torch_cubic_b_spline_grid-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b3357e7a40ae2eafd8dce62a31d5be73510baf36f877d91d2d3b36107f9656c0",
"md5": "1aa3543b114a1498584329dc1ee16a9e",
"sha256": "ebce9c55663b377d291e8af637796cbbdea9392750416593559e20c98c37e8ca"
},
"downloads": -1,
"filename": "torch_cubic_b_spline_grid-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "1aa3543b114a1498584329dc1ee16a9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 148172,
"upload_time": "2023-02-01T10:58:38",
"upload_time_iso_8601": "2023-02-01T10:58:38.094904Z",
"url": "https://files.pythonhosted.org/packages/b3/35/7e7a40ae2eafd8dce62a31d5be73510baf36f877d91d2d3b36107f9656c0/torch_cubic_b_spline_grid-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-01 10:58:38",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "torch-cubic-b-spline-grid"
}