Skip to main content

easy to use Irregularly shaped convolution kernels

Project description

Providing an easy way for devoloper to include irregular convolution in there models.

irregularly shaped kernels can reduce over fitting significantly. Although this has been known for years, there is not an easy way for devolopers to include irregular convolution in their models. This package aims to change that.

while traditional kernels look like this: [w00, w01, w02, w10, w11, w12, w20, w21, w22] Irregular kernels look like this for example: [0 , w01, 0, w10, w11, w12, 0 , 0 , 0] Two differently shaped kernels cannot learn to identify the same features. This promotes the network to learn more features and generalize better.

NOTE: at the moment, the only supported kernel size is (3, 3)

for Keras: from IrregConv.keras_tools import IrregConv2D

you can use "IrregConv2D" in your keras model in the same way as normal keras layer. It takes all of the same inputs as keras.layers.Conv2D so the two can be easily interchanged. The two layers behave in the same way except "IrregConv2D" irregularly shaped kernels.

for PyTorch: from IrregConv.torch_tools import IrregConv2D

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

IrregConv-0.8.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file IrregConv-0.8.tar.gz.

File metadata

  • Download URL: IrregConv-0.8.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for IrregConv-0.8.tar.gz
Algorithm Hash digest
SHA256 a4beeae00f58fdbf98598193465c7a27c676e272fdec7bb5e3e7d4d865f0c22b
MD5 2eb9942e8580139696e599715fec0fe9
BLAKE2b-256 04fd63901eb9ee52263e3f24d63c8d0a90cee5deaa6ef8cfc3eceae3f9083c02

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