卷积神经网络Quiz4

Question 1
Face verification requires comparing a new picture against one person’s face, whereas face recognition requires comparing a new picture against K person’s faces.

True

False

解析:
人脸验证(Verification):

  • Input:图片、名字/ID;
  • Output:输入的图片是否是对应的人。
  • 1 to 1 问题。

人脸识别(Recognition):

  • 拥有一个具有K个人的数据库;
  • 输入一副人脸图片;
  • 如果图片是任意这K个人中的一位,则输出对应人的ID。

Question 2
Why do we learn a function d(img1,img2) for face verification? (Select all that apply.)

We need to solve a one-shot learning problem.

This allows us to learn to predict a person’s identity using a softmax output unit, where the number of classes equals the number of persons in the database plus 1 (for the final “not in database” class).

Given how few images we have per person, we need to apply transfer learning.

This allows us to learn to recognize a new person given just a single image of that person.

解析:对于一个人脸识别系统,我们需要仅仅通过先前的一张人脸的图片或者说一个人脸的样例,就能够实现该人的识别,那么这样的问题就是one shot 问题;其实在最后一层把Softmax函数去掉了;不需要迁移学习;人脸识别中,当需要对一个新的面孔进行识别时,只需要添加几张该面孔进数据库即可


Question 3
In order to train the parameters of a face recognition system, it would be reasonable to use a training set comprising 100,000 pictures of 100,000 different persons.

True

False

解析:不需要全不相同,每个人需要有几张不同的照片。


4。Question 4
Which of the following is a correct definition of the triplet loss? Consider that α>0. (We encourage you to figure out the answer from first principles, rather than just refer to the lecture.)

max(||f(A)−f(P)||2−||f(A)−f(N)||2+α,0)

max(||f(A)−f(N)||2−||f(A)−f(P)||2+α,0)

max(||f(A)−f(N)||2−||f(A)−f(P)||2−α,0)

max(||f(A)−f(P)||2−||f(A)−f(N)||2−α,0)


Question 5
Consider the following Siamese network architecture:
这里写图片描述
The upper and lower neural networks have different input images, but have exactly the same parameters.

True

False
解析:网络的参数是相同的


Question 6
You train a ConvNet on a dataset with 100 different classes. You wonder if you can find a hidden unit which responds strongly to pictures of cats. (I.e., a neuron so that, of all the input/training images that strongly activate that neuron, the majority are cat pictures.) You are more likely to find this unit in layer 4 of the network than in layer 1.

True

False

解析:对于卷积网络的各层单元,随着网络深度的增加,隐藏层计算单元随着层数的增加,从简单的事物逐渐到更加复杂的事物。
这里写图片描述


Question 7
Neural style transfer is trained as a supervised learning task in which the goal is to input two images (x), and train a network to output a new, synthesized image (y).

True

False
解析:图像并没有相应的label


Question 8
In the deeper layers of a ConvNet, each channel corresponds to a different feature detector. The style matrix G[l] measures the degree to which the activations of different feature detectors in layer l vary (or correlate) together with each other.

True

False

解析:定义“Style”表示 l 层的各个通道激活项之间的相关性。


Question 9
In neural style transfer, what is updated in each iteration of the optimization algorithm?

The regularization parameters

The neural network parameters

The pixel values of the content image C

The pixel values of the generated image G

解析:
神经风格迁移执行过程:

  • 随机初始化生成图片G,如大小为100×100×3;
  • 使用梯度下降算法最小化上面定义的代价函数 J(G), G:=G−∂J(G)/∂G;
    这里写图片描述

10。Question 10
You are working with 3D data. You are building a network layer whose input volume has size 32x32x32x16 (this volume has 16 channels), and applies convolutions with 32 filters of dimension 3x3x3 (no padding, stride 1). What is the resulting output volume?

30x30x30x16

Undefined: This convolution step is impossible and cannot be performed because the dimensions specified don’t match up.

30x30x30x32
解析:
这里写图片描述
3D卷积:14×14×14×1∗5×5×5×1——>10×10×10×nc


参考:http://blog.csdn.net/koala_tree/article/details/78647528

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值