GaborConv2D icon indicating copy to clipboard operation
GaborConv2D copied to clipboard

Gabor Convolutional Layer.Open to Contributions. Link to paper https://github.com/ucalyptus/GaborConv2D/blob/master/gabor.pdf

GaborConv2D

Gabor Convolutional Layer in Pytorch. Created using subclassing the ConvND class. Similar implementation can be made in tf2 by subclassing tf.python.keras.convolutional's Conv class which describes the Conv op.

Abstract:

In steerable filters, a filter of arbitrary orientation can be generated by a linear combination of a set of “basis filters.” Steerable properties dominate the design of the traditional filters, e.g., Gabor filters and endow features the capability of handling spatial transformations. However, such properties have not yet been well explored in the deep convolutional neural networks (DCNNs). In this paper, we develop a new deep model, namely, Gabor convolutional networks (GCNs or Gabor CNNs), with Gabor filters incorporated into DCNNs such that the robustness of learned features against the orientation and scale changes can be reinforced. By manipulating the basic element of DCNNs, i.e., the convolution operator, based on Gabor filters, GCNs can be easily implemented and are readily compatible with any popular deep learning architecture. We carry out extensive experiments to demonstrate the promising performance of our GCNs framework, and the results show its superiority in recognizing objects, especially when the scale and rotation changes take place frequently. Moreover, the proposed GCNs have much fewer network parameters to be learned and can effectively reduce the training complexity of the network, leading to a more compact deep learning model while still maintaining a high feature representation capacity.

Link to paper

Setup

pip install -U torch torchvision torchsummary

Run

python test.py