深度学习Course4第四周Special Applications: Face Recognition & Neural Style Transfer习题整理

Special Applications: Face Recognition & Neural Style Transfer

  1. Face verification and face recognition are the two most common names given to the task of comparing a new picture against one person’s face. True/False?
  • False
  • True
  1. You want to build a system that receives a person’s face picture and determines if the person is inside a workgroup. You have pictures of all the faces of the people currently in the workgroup, but some members might leave, and some new members might be added. Which of the following do you agree with?
  • It is best to build a convolutional neural network with a softmax output with as many outputs as members of the group.
  • This can be considered a one-shot learning task.

解释: Since we might have only one example of the person we want to recognize.

  • It will be more efficient to learn a function d(img1,img2) for this task.

解释:Since this is a one-shot learning task this function will allow us to compare two images to verify identity.

  • This can’t be considered a one-shot learning task since there might be many members in the workgroup.
  1. You want to build a system that receives a person’s face picture and determines if the person is inside a workgroup. You have pictures of all the faces of the people currently in the workgroup, but some members might leave, and some new members might be added. To train a system to solve this problem using the triplet loss you must collect pictures of different faces from only the current members of the team. True/False?
  • False
  • True

解释:Although it is necessary to have several pictures of the same person, it is not absolutely necessary that all the pictures only come from current members of the team.

  1. Which of the following is a correct definition of the triplet loss? Consider that α > 0 \alpha>0 α>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 (\left \| f(A)-f(P) \right \|^{2} - \left \| f(A)-f(N) \right \|^{2} - \alpha ,0) max(f(A)f(P)2f(A)f(N)2α,0)
  • max ⁡ ( ∥ f ( A ) − f ( P ) ∥ 2 − ∥ f ( A ) − f ( N ) ∥ 2 + α , 0 ) \max (\left \| f(A)-f(P) \right \|^{2} - \left \| f(A)-f(N) \right \|^{2} + \alpha ,0) max(f(A)f(P)2f(A)f(N)2+α,0)
  • max ⁡ ( ∥ f ( A ) − f ( N ) ∥ 2 − ∥ f ( A ) − f ( P ) ∥ 2 + α , 0 ) \max (\left \| f(A)-f(N) \right \|^{2} - \left \| f(A)-f(P) \right \|^{2} + \alpha ,0) max(f(A)f(N)2f(A)f(P)2+α,0)
  • max ⁡ ( ∥ f ( A ) − f ( N ) ∥ 2 − ∥ f ( A ) − f ( P ) ∥ 2 − α , 0 ) \max (\left \| f(A)-f(N) \right \|^{2} - \left \| f(A)-f(P) \right \|^{2} - \alpha ,0) max(f(A)f(N)2f(A)f(P)2α,0)
  1. Consider the following Siamese network architecture:
    在这里插入图片描述
    The upper and lower networks share parameters to have a consistent encoding for both images. True/False?
  • False
  • True

解释:Part of the idea behind the Siamese network is to compare the encoding of the images, thus they must be consistent.

  1. Our intuition about the layers of a neural network tells us that units that respond more to complex features are more likely to be in deeper layers. True/False?
  • False
  • True

解释:Neurons that understand more complex shapes are more likely to be in deeper layers of a neural network.

  1. Neural style transfer uses images Content C, Style S. The loss function used to generate image G is composed of which of the following: (Choose all that apply.)
  • J c o n t e n t Jcontent Jcontent that compares C C C and G G G.

解释:in neural style transfer we are interested in the similarity between S and G, and the similarity between G and C.

  • J s t y l e Jstyle Jstyle that compares S and G.

解释:Correct, in neural style transfer we are interested in the similarity between S and G, and the similarity between G and C.

  • J c o r r Jcorr Jcorr that compares C and S.
  • T T T that calculates the triplet loss between S, G, and C.
  1. In neural style transfer, we define style as:
  • The correlation between the activation of the content image C and the style image S.
  • ∥ a [ l ] ( S ) − a [ l ] ( G ) ∥ 2 \left \| a^{[l](S)} - a^{[l](G)} \right \| ^2 a[l](S)a[l](G) 2 the distance between the activation of the style image and the content image.
  • The correlation between the generated image G and the style image S.
  • The correlation between activations across channels of an image
  1. In neural style transfer, we can’t use gradient descent since there are no trainable parameters. True/False?
  • False
  • True
  1. You are working with 3D data. The input “image” has size 32 × 32 × 32 × 3 32\times32\times32\times3 32×32×32×3, if you apply a convolutional layer with 16 filters of size 4 × \times × 4 × \times × 4, zero padding and stride 1. What is the size of the output volume?
  • 29×29×29×16
  • 29×29×29×13
  • 29×29×29×3
  • 31×31×31×16

29×29×29×3.31×31×31×16.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

l8947943

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值