Skip to main content

Spline Based Transformer

Project description

Spline-Based Transformer (wip)

Implementation of the proposed Spline-Based Transformer from Disney Research

This is basically a transformer based autoencoder, but they cleverly use a set of latent tokens, where that set of tokens are the (high dimensional) control points for a spline.

Install

$ pip install spline-based-transformer

Usage

import torch
from spline_based_transformer import SplineBasedTransformer

model = SplineBasedTransformer(
    dim = 512,
    enc_depth = 6,
    dec_depth = 6
)

data = torch.randn(1, 1024, 512)

loss = model(data, return_loss = True)
loss.backward()

recon = model(data)
assert data.shape == recon.shape

Citations

@misc{Chandran2024,
    author  = {Prashanth Chandran, Agon Serifi, Markus Gross, Moritz Bächer},
    url     = {https://la.disneyresearch.com/publication/spline-based-transformers/}
}

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

spline_based_transformer-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

spline_based_transformer-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file spline_based_transformer-0.0.1.tar.gz.

File metadata

File hashes

Hashes for spline_based_transformer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e0b7bb872a4a16d9bb9d73de582738d450188939182f50ed11789bddb3a34dc8
MD5 7725a282303c598dd5ebeaf43c74b63a
BLAKE2b-256 5c2271002fe3beb93ae08a9737b2868d2b71bffbe4e1bcb8b8cec1a19131be64

See more details on using hashes here.

File details

Details for the file spline_based_transformer-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for spline_based_transformer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 087ca1768917d42f88767b12ba9cf075ab4b983285726442c3c8cb3ad50c7984
MD5 5b02eda55f7fb74afe5f96ded41e7651
BLAKE2b-256 887f614f0e799b5cf87ae880a3dd61dc6e060a0f714d2c1ca904f3a199b7d990

See more details on using hashes here.

Supported by

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