Convolutional Neural Networks (CNN) - QA & HandsOn
Convolutional Neural Networks (CNN) - QA & HandsOn
Which of these could be the additional advantage of data padding apart from
dimensionality reduction?
- Learns more features from image corners (Correct)
The limitation of training a fully connected neural network instead of CNN for
image recognition is _________________.
- All the options (Correct)
If the data dimension is 16 x 16, filter 5x5, and stride 1, then what is the amount
of padding required so that convolution output has the same dimension as the input?
- 2 (Correct)
The size of each filter should always be equal t the dimension of the receptive
field.
- True (Correct)
Which of the following network has the least number of parameters to learn?
- LeNet (Correct)
The pixel intensity of the grayscale image varies between ___________.
- 0 to 255 (Correct)
What would be the number of feature vectors if the convolution is performed on the
image of 3 channels by a filter of 6 channels?
- 6 (Correct)
The size of each filter should always be equal to the dimension of the receptive
field.
- True (Correct)
Which of these could be the additional advantage of data padding apart from
reducing dimensionality reduction?
- Learns more features from image corners (Correct)
On which of the following input data dimension was the AlexNet trained?
- 227 x 227 x 3 (Correct)
The local region of the input data over which convolution is performed is known as
___________.
- Receptive field (Correct)
The size of the input data diminishes as it passes through the CNN layers.
- True (Correct)
===================================================================================
=====================
===================================================================================
=====================
#HandsOn#
img = mpimg.imread("home.png")
data = img.reshape(1,img.shape[0], img.shape[1], img.shape[2])
###start code
hparams = {'stride':1, 'f':2}
Z_pool = max_pool(input_, hparams)
###End code
===================================================================================
======================
graph = tf.Graph()
with graph.as_default():
tf.set_random_seed(1)
input_= tf.constant(data.astype(np.float32)) ##The input data is coverted into
tensor of type float32
###Start code here
W = tf.Variable(tf.random_normal([5,5,3,32]))
b = tf.Variable(tf.random_normal([32]))