Official Pypi Implementation of "SRI-Conv: Symmetric Rotation-Invariant Convolutional Kernel"
Yuexi Du, Nicha, Dvornek, John Onofrey
Yale University
This is the official release of SRI_Conv
version: 1.2.5
News
- [1.2.0] Gaussian Smooth Kernel is available now!
- [1.1.0]
SRI_Conv1dandSRI_Conv3dare also available now.
Installation
pip install SRI-Conv
Requirement:
"scipy>=1.9.0",
"numpy>=1.22.0",
"torch>=1.8.0"
Note: Using lower version of torch and numpy should be fine given that we didn't use any new feature in the new torch version, but we do suggest you to follow the required dependencies. If you have to use the different version of torch/numpy, you may also try to install the package from source code at project repo.
Usage
>>> import torch
>>> from SRI_Conv import SRI_Conv2d, sri_resnet18
>>> x = torch.randn(2, 3, 32, 32)
>>> sri_conv = SRI_Conv2d(3, 16, 3)
>>> conv_out = sri_conv(x)
>>> sri_r18 = sri_resnet18()
>>> output = sri_r18(x)
# To reproduce the SRI-ResNet18 used in the paper, use:
>>> sri_r18 = sri_resnet18(ri_conv_size=[9, 9, 5, 5], skip_first_maxpool=True)
Metadata
Release files for SRI-Conv 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sri_conv-1.2.5.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SRI_Conv-1.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.4 kB
Release files / sri_conv-1.2.5.tar.gz
| Download URL | sri_conv-1.2.5.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef5f40b0c485f7ef6709e4abf92f26d3be6cddf839d6a466438803d7ac436794
|
|
BLAKE2b-256 checksum How to use checksums |
a62b96ec71fe2650a150ede2ac286c56cc03e963bf6055a189aa0e6765b7275e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / SRI_Conv-1.2.5-py3-none-any.whl
| Download URL | SRI_Conv-1.2.5-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8595134cacb267a004b6f9cf4c47a24fbeb31dbf18078070a8784c8138fc36a6
|
|
BLAKE2b-256 checksum How to use checksums |
329235261c934d3a0f3ddeef98adf9cf3a07d3d70ebf9a9a45f26f33b6b8812d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|