Skip to main content

LambdaResNet implementation in TensorFlow 2.2

Project description

LambdaResNet - TensorFlow

All credit goes to lucidrains for sharing the initial pytorch implementation. This repo takes majority of contents from his original repo here.

Implementation of λ-ResNet.

Yannic Kilcher's paper review

Install

$ pip install tf-lambda-resnet

Usage

LambdaResNet uses localized context as explained in the video.

import tensorflow as tf
from tf_lambda_resnet import LambdaResnet18

model = LambdaResnet18()
out = model(tf.ones([10, 224, 224, 3]))
print(out)

Credits

All the code is taken from the below resources. I have assembled them in a proper manner to make it work for TF2.2

References

Thanks to PistonY for sharing a gist here - lambda_net.py

Citations

@inproceedings{
    anonymous2021lambdanetworks,
    title={LambdaNetworks: Modeling long-range Interactions without Attention},
    author={Anonymous},
    booktitle={Submitted to International Conference on Learning Representations},
    year={2021},
    url={https://openreview.net/forum?id=xTJEN-ggl1b},
    note={under review}
}

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

tf-lambda-resnet-0.1.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tf_lambda_resnet-0.1.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tf-lambda-resnet-0.1.4.tar.gz.

File metadata

  • Download URL: tf-lambda-resnet-0.1.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.0 Darwin/19.3.0

File hashes

Hashes for tf-lambda-resnet-0.1.4.tar.gz
Algorithm Hash digest
SHA256 26ff86fe18172492a41bca26c3f5605520155bd7a57180730e9b21f85e0e2e4f
MD5 385e1d1bd8cb79492fa2508f9a1821e8
BLAKE2b-256 b6995acfcef9a08fd535799e2d54a38afcc2e27c86e4d9fdd96fdc1a11c72df1

See more details on using hashes here.

File details

Details for the file tf_lambda_resnet-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tf_lambda_resnet-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.0 Darwin/19.3.0

File hashes

Hashes for tf_lambda_resnet-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 701dbe9a5db03c519a70f3b7e2d54cfb4e8d7cfcae5bc212f40b28fb8bfc9ba4
MD5 23641e15089a2b488e4f39ce17486d93
BLAKE2b-256 9cca61900e6fc857c203b8b8bbac4e5914270428fe3155d94368b6df7f9ac034

See more details on using hashes here.

Supported by

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