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

Uploaded Source

File details

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

File metadata

  • Download URL: IrregConv-0.7.tar.gz
  • Upload date:
  • Size: 3.7 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.7.tar.gz
Algorithm Hash digest
SHA256 329d488c337db5b72d843c38289ae52d83516aa1390fd0490699b516289a1ec4
MD5 a04ef9e1b4017c08b6b830445317e40e
BLAKE2b-256 363683cba556720450e0d6a44ea1100a5fc9df3406494e168a7371b238ea3998

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