Autoregressive Diffusion - Pytorch
Project description
Autoregressive Diffusion - Pytorch (wip)
Implementation of the architecture behind Autoregressive Image Generation without Vector Quantization in Pytorch
You can discuss the paper temporarily here
Install
$ pip install autoregressive-diffusion-pytorch
Usage
import torch
from autoregressive_diffusion_pytorch import AutoregressiveDiffusion
model = AutoregressiveDiffusion(
dim = 512,
max_seq_len = 32
)
seq = torch.randn(3, 32, 512)
loss = model(seq)
loss.backward()
sampled = model.sample(batch_size = 3)
assert sampled.shape == seq.shape
Citations
@article{Li2024AutoregressiveIG,
title = {Autoregressive Image Generation without Vector Quantization},
author = {Tianhong Li and Yonglong Tian and He Li and Mingyang Deng and Kaiming He},
journal = {ArXiv},
year = {2024},
volume = {abs/2406.11838},
url = {https://api.semanticscholar.org/CorpusID:270560593}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for autoregressive_diffusion_pytorch-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 587f951da79a4e66e6573c5049d4d6ea6bbc6d892e4443880ce07de35e935e80 |
|
MD5 | 80615023f76b4924cc52b6f515762908 |
|
BLAKE2b-256 | e44b973488b41036a1530825f385725b519de346330f55a96cf20d4c7846350b |
Close
Hashes for autoregressive_diffusion_pytorch-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12640839fe7050adac111e72821b053134228b88080ae774275aecb1db194d30 |
|
MD5 | b9c5f3b2548157e2676004da9a0553c1 |
|
BLAKE2b-256 | c01d7f0b6fb10fe3a52ef365f2869543463658e7e7b1cde76b997ee0d600257a |