Skip to content

Commit b1eb016

Browse files
committed
update with diagram
1 parent 1bd5657 commit b1eb016

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
<img src="./λ.png" width="500px"></img>
2+
13
## Lambda Networks - Pytorch
24

3-
Implementation of Lambda Networks, a new approach to image recognition that reaches SOTA on ImageNet. The new method utilizes lambda layer, which captures interactions by transforming contexts into linear functions, termed lambdas, and applying these linear functions to each input separately.
5+
Implementation of λ Networks, a new approach to image recognition that reaches SOTA on ImageNet. The new method utilizes λ layer, which captures interactions by transforming contexts into linear functions, termed lambdas, and applying these linear functions to each input separately.
46

57
## Install
68

@@ -48,6 +50,12 @@ x = torch.randn(1, 32, 64, 64)
4850
layer(x) # (1, 32, 64, 64)
4951
```
5052

53+
For fun, you can also import this as follows
54+
55+
```python
56+
from lambda_networks import λLayer
57+
```
58+
5159
## Todo
5260

5361
- [x] Lambda layers with structured context

lambda_networks/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from lambda_networks.lambda_networks import LambdaLayer
2+
λLayer = LambdaLayer

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'lambda-networks',
55
packages = find_packages(),
6-
version = '0.1.1',
6+
version = '0.1.2',
77
license='MIT',
88
description = 'Lambda Networks - Pytorch',
99
author = 'Phil Wang',

λ.png

187 KB
Loading

0 commit comments

Comments
 (0)