I'm new at machine learning and I was reading about CNN with Tensorflow but I have a doubt with this block of code:
conv1 = tf.layers.conv2d(
inputs=input_layer,
filters=32,
kernel_size=[5, 5],
padding="same",
activation=tf.nn.relu)
According to several articles, there are a lot of filters to apply (Blur, Sharpening, etc). What kind of kernel is Tensorflow applying by default in this kind of code?
Because I'm not specifying any kernel type like:
I'm pretty confused about it, I'll really appreciate any kind of help.
Thanks in advance!
Box filter, Gaussian filter and bilateral filters are kind of well-known filters used in image processing. As we know all these filters are used for de-blurring and smoothing.
Mainly there are 2 types of filters and user those topics, there are different types of filtering techniques. Image filters are widely use for remove noises and image enhancement processes. Using filters, we can remove or emphasize image details.
Image filtering theory. Filtering is one of the most basic and common image operations in image processing. You can filter an image to remove noise or to enhance features; the filtered image could be the desired result or just a preprocessing step. Regardless, filtering is an important topic to understand.
It's confusing, but TensorFlow has two conv2d
methods: tf.nn.conv2d
and tf.layers.conv2d
. If you want to filter an image with a known kernel, call tf.nn.conv2d
. If you want to create a layer in a convolutional neural network (CNN) that will determine its filters programmatically, call tf.layers.conv2d
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With