Thin Plate Spline implementation with PyTorch
Project description
torch-tps
Implementation of Thin Plate Spline. (See numpy implementation with thin-plate-spline library)
Install
Pip
$ pip install torch-tps
Conda
Not yet available
Getting started
import torch
from tps import ThinPlateSpline
# Some data
X_c = torch.normal(0, 1, (800, 3))
X_t = torch.normal(0, 2, (800, 2))
X = torch.normal(0, 1, (300, 3))
# Create the tps object
tps = ThinPlateSpline(alpha=0.0) # 0 Regularization
# Fit the control and target points
tps.fit(X_c, X_t)
# Transform new points
Y = tps.transform(X)
Also have a look at example.py
Build and Deploy
$ python -m build
$ python -m twine upload dist/*
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
torch-tps-1.0.2.tar.gz
(4.4 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 torch-tps-1.0.2.tar.gz.
File metadata
- Download URL: torch-tps-1.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1e04857cd920ebbc02cb721fb21829280990aaccef82fc3d99702780a765600
|
|
| MD5 |
088e5141d458e689d2880511d2e36ddb
|
|
| BLAKE2b-256 |
be6b5bd618905ecd84cec0d342b425ab09f4a817b20e9be6644b88ba09415399
|
File details
Details for the file torch_tps-1.0.2-py3-none-any.whl.
File metadata
- Download URL: torch_tps-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
443f9a4d4757f527a629ceed1e32834331e7e54647842913bbcca98e90695274
|
|
| MD5 |
7dd8ce00247adee88bd377500b10607c
|
|
| BLAKE2b-256 |
5fa5e47a74f348919ce858a23f1c95c756a99e9a2c6797ef6d183ece5780ff1b
|