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 feature 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.4.tar.gz (3.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: IrregConv-0.4.tar.gz
  • Upload date:
  • Size: 3.4 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.4.tar.gz
Algorithm Hash digest
SHA256 506f3929c9123997fe4933e3c223dfebedee61de4952297793734f2763a3beac
MD5 3841fca23331ab544b3999673c4bfa22
BLAKE2b-256 8e54fbc9a916e2f2cff00579a416dceed59f5e31cb2e942524f3791f2113246f

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