Frame Averaging
Project description
Frame Averaging - Pytorch (wip)
Pytorch implementation of a simple way to enable (Stochastic) Frame Averaging for any network
Install
$ pip install frame-averaging-pytorch
Usage
import torch
from frame_averaging_pytorch import FrameAverage
# contrived neural network
net = torch.nn.Linear(3, 3)
# wrap the network with FrameAverage
net = FrameAverage(net)
# pass your input to the network as usual
points = torch.randn(2, 4, 1024, 3)
out = net(points)
out.shape # (2, 4, 1024, 3)
# frame averaging is automatically taken care of, as though the network were unwrapped
Citations
@article{Puny2021FrameAF,
title = {Frame Averaging for Invariant and Equivariant Network Design},
author = {Omri Puny and Matan Atzmon and Heli Ben-Hamu and Edward James Smith and Ishan Misra and Aditya Grover and Yaron Lipman},
journal = {ArXiv},
year = {2021},
volume = {abs/2110.03336},
url = {https://api.semanticscholar.org/CorpusID:238419638}
}
@article{Duval2023FAENetFA,
title = {FAENet: Frame Averaging Equivariant GNN for Materials Modeling},
author = {Alexandre Duval and Victor Schmidt and Alex Hernandez Garcia and Santiago Miret and Fragkiskos D. Malliaros and Yoshua Bengio and David Rolnick},
journal = {ArXiv},
year = {2023},
volume = {abs/2305.05577},
url = {https://api.semanticscholar.org/CorpusID:258564608}
}
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
frame_averaging_pytorch-0.0.1.tar.gz
(219.8 kB
view details)
Built Distribution
File details
Details for the file frame_averaging_pytorch-0.0.1.tar.gz
.
File metadata
- Download URL: frame_averaging_pytorch-0.0.1.tar.gz
- Upload date:
- Size: 219.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d76286b43cdcf22621cd899d5e1318378f1b8467444183ec2ca77ecf3004b3ee |
|
MD5 | c70c1ea60a7dfa653fc6f7efe6585854 |
|
BLAKE2b-256 | d40f057006a09631f2f7b70a5bfba48a0e5d276398264cb7ff43ff3d5dbcd249 |
File details
Details for the file frame_averaging_pytorch-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: frame_averaging_pytorch-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eddbf7479388328c357d74fa4801c1b671ba7d3dd075e41ea6bfe8a263a4560 |
|
MD5 | 1bd452f4e826e6eac3f6b429e2314411 |
|
BLAKE2b-256 | 38ee264d9a732f051781097c67aa35012a5e7d87dd1b9df1a6518f9cfb3509ea |