Global-Wise Pooling Layers for PyTorch
Project description
Non-Local Pooling
Update 2.0.1
- Now NonLocalPool2d will not use PixelShuffle by default since it may harm the performance. NonLocalPool3d still uses PixelShuffle3d to reduce the token number.
Update 1.2.0
- Now you can determine the output channel just like all the other learnable pooling methods (former version force out_channel=in_channel). However, if you specify out_channel, MaxPool would not work then since they cannot be added together. Leave out_channel to None to make the module works like before.
To use NonLocalPooling for your PyTorch project:
Step 1
pip install nonlocalpooling
Step 2
from nonlocalpooling.pool import NonLocalPool2d, NonLocalPool3d
Non-Local Pooling can be used to substitue your original PyTorch pooling methods.
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
nonlocalpooling-2.0.1.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonlocalpooling-2.0.1.tar.gz.
File metadata
- Download URL: nonlocalpooling-2.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffff4f1e3cf9e3eaae1b08549f81b3d3eecd036812d4f56f861da83410e1f60e
|
|
| MD5 |
67fcd77795ba505166bd8b21afd20b9d
|
|
| BLAKE2b-256 |
ae8f2004b588d3988680647c89f1cc45d8d2cdb36f9b08a79d17d419ad0fc1d1
|
File details
Details for the file nonlocalpooling-2.0.1-py3-none-any.whl.
File metadata
- Download URL: nonlocalpooling-2.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84c9295cd9eee6bab1638bddb63b4e270c6b710574da3c43cd49beb7a840632c
|
|
| MD5 |
36aa2dc65c7b07f74c43c6b781d8c4bf
|
|
| BLAKE2b-256 |
9ecaf6d21e189d526d03aa4ff451ff30e495757c448a833251d267107ee32b15
|