【中英】【吴恩达课后测验】Course 4 -卷积神经网络 - 第四周测验 - 特殊应用:人脸识别和神经风格转换


上一篇:【课程4 - 第三周编程作业】※※※※※ 【回到目录】※※※※※下一篇:【待撰写-课程4 -第四周编程作业】


1.面部验证只需要将新图片与\(1\)个人的面部进行比较,而面部识别则需要将新图片与\(K\)个人的面部进行比较。

】正确

【 】错误

2.在人脸验证中函数\(d(img1,img2)\)起什么作用?

】只需要给出一个人的图片就可以让网络认识这个人。

】为了解决一次学习的问题。

【 】这可以让我们使用softmax函数来学习预测一个人的身份,在这个单元中分类的数量等于数据库中的人的数量加1。

Softmax output unit has been removed.



Softmax 输出单元在这里已经被去掉了。

【 】鉴于我们拥有的照片很少,我们需要将它运用到迁移学习中。

We don't need to use transfer learning.



我们不需要使用迁移学习。

3.为了训练人脸识别系统的参数,使用包含了10万个不同的人的10万张图片的数据集进行训练是合理的。

【 】正确

】错误

More than one pictures per person are needed.



每个人需要多张照片的。

4.下面哪个是三元组损失的正确定义(请把 \(\alpha\)也考虑进去)?

】\(max(||f(A)-f(P)||^2 - ||f(A)-f(N)||^2 + \alpha, 0)\)

【 】\(max(||f(A)-f(N)||^2 - ||f(A)-f(P)||^2 + \alpha, 0)\)

【 】\(max(||f(A)-f(N)||^2 - ||f(A)-f(P)||^2 - \alpha, 0)\)

【 】\(max(||f(A)-f(P)||^2 - ||f(A)-f(N)||^2 - \alpha, 0)\)

5.在下图中的孪生卷积网络(Siamese network)结构图中,上下两个神经网络拥有不同的输入图像,但是其中的网络参数是完全相同的。

】正确

【 】错误

Wee need the same parameters to get \(f(x^{(i)})\)



我们需要相同的参数来获得\(f(x^{(i)})\)。

6.你在一个拥有100种不同的分类的数据集上训练一个卷积神经网络,你想要知道是否能够找到一个对猫的图片很敏感的隐藏节点(即在能够强烈激活该节点的图像大多数都是猫的图片的节点),你更有可能在第4层找到该节点而不是在第1层更有可能找到。

】正确

【 】错误

7.神经风格转换被训练为有监督的学习任务,其中的目标是输入两个图像 (\(x\)),并训练一个能够输出一个新的合成图像(\(y\))的网络。

【 】正确

】错误

Images have no labels.



监督学习需要标签,但是这里的图像没有标签。

8.在一个卷积网络的深层,每个通道对应一个不同的特征检测器,风格矩阵\(G^{[l]}\)度量了\(l\)层中不同的特征探测器的激活(或相关)程度。

】正确

【 】错误

9.在神经风格转换中,在优化算法的每次迭代中更新的是什么?

【 】神经网络的参数

】生成图像\(G\)的像素值

【 】正则化参数

【 】内容图像\(C\)的像素值

10.你现在用拥有的是3D的数据,现在构建一个网络层,其输入的卷积是\(32 \times 32 \times 32 \times 16\)(此卷积有16个通道),对其使用\(32\)个\(3 \times 3 \times 3\)的过滤器(无填充,步伐为1)进行卷积操作,请问输出的卷积是多少?

】\(30 \times 30 \times 30 \times 32\)

【 】不能操作,因为指定的维度不匹配,所以这个卷积步骤是不可能执行的。

【 】\(30 \times 30 \times 30 \times 16\)


博主注:本节英文来源于github.com,以下是原作者在文中注的的CSDN指向连接:

Please refer to https://blog.csdn.net/koala_tree/article/details/78647528 for further information.


Special applications: Face recognition & Neural style transfer

Quiz, 10 questions

1. 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

2. Question 2

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

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

  • 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).

Softmax output unit has been removed.

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

We don't need to use transfer learning.

3. 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

More than one pictures per person are needed.

4. Question 4

Which of the following is a correct definition of the triplet loss? Consider that \(\alpha\). (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 + \alpha, 0)\)

  • \(max(||f(A)-f(N)||^2 - ||f(A)-f(P)||^2 + \alpha, 0)\)

  • \(max(||f(A)-f(N)||^2 - ||f(A)-f(P)||^2 - \alpha, 0)\)

  • \(max(||f(A)-f(P)||^2 - ||f(A)-f(N)||^2 - \alpha, 0)\)

5

. 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

Wee need the same parameters to get \(f(x^{(i)})\)

6. 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

7. 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

Images have no labels.

8. 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

9. Question 9

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

  • The neural network parameters

  • The pixel values of the generated image \(G\)

  • The regularization parameters

  • The pixel values of the content image \(C\)

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?

  • 30x30x30x32

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

  • 30x30x30x16

Please refer to https://blog.csdn.net/koala_tree/article/details/78647528 for further information.

【中英】【吴恩达课后测验】Course 4 -卷积神经网络 - 第四周测验的更多相关文章

  1. 【吴恩达课后测验】Course 1 - 神经网络和深度学习 - 第二周测验【中英】

    [中英][吴恩达课后测验]Course 1 - 神经网络和深度学习 - 第二周测验 第2周测验 - 神经网络基础 神经元节点计算什么? [ ]神经元节点先计算激活函数,再计算线性函数(z = Wx + ...

  2. 【吴恩达课后测验】Course 1 - 神经网络和深度学习 - 第一周测验【中英】

    [吴恩达课后测验]Course 1 - 神经网络和深度学习 - 第一周测验[中英] 第一周测验 - 深度学习简介 和“AI是新电力”相类似的说法是什么? [  ]AI为我们的家庭和办公室的个人设备供电 ...

  3. 【中文】【deplearning.ai】【吴恩达课后作业目录】

    [目录][吴恩达课后作业目录] 吴恩达深度学习相关资源下载地址(蓝奏云) 课程 周数 名称 类型 语言 地址 课程1 - 神经网络和深度学习 第1周 深度学习简介 测验 中英 传送门 无编程作业 编程 ...

  4. 吴恩达课后作业学习1-week4-homework-two-hidden-layer -1

    参考:https://blog.csdn.net/u013733326/article/details/79767169 希望大家直接到上面的网址去查看代码,下面是本人的笔记 两层神经网络,和吴恩达课 ...

  5. 吴恩达课后作业学习1-week4-homework-multi-hidden-layer -2

    参考:https://blog.csdn.net/u013733326/article/details/79767169 希望大家直接到上面的网址去查看代码,下面是本人的笔记 实现多层神经网络 1.准 ...

  6. 吴恩达课后作业学习2-week1-1 初始化

    参考:https://blog.csdn.net/u013733326/article/details/79847918 希望大家直接到上面的网址去查看代码,下面是本人的笔记 初始化.正则化.梯度校验 ...

  7. 吴恩达课后作业学习2-week1-2正则化

    参考:https://blog.csdn.net/u013733326/article/details/79847918 希望大家直接到上面的网址去查看代码,下面是本人的笔记 4.正则化 1)加载数据 ...

  8. 【吴恩达课后编程作业】第二周作业 - Logistic回归-识别猫的图片

    1.问题描述 有209张图片作为训练集,50张图片作为测试集,图片中有的是猫的图片,有的不是.每张图片的像素大小为64*64 吴恩达并没有把原始的图片提供给我们 而是把这两个图片集转换成两个.h5文件 ...

  9. 吴恩达课后作业学习1-week2-homework-logistic

    参考:https://blog.csdn.net/u013733326/article/details/79639509 希望大家直接到上面的网址去查看代码,下面是本人的笔记 搭建一个能够 “识别猫” ...

  10. 吴恩达课后作业学习1-week3-homework-one-hidden-layer

    参考:https://blog.csdn.net/u013733326/article/details/79702148 希望大家直接到上面的网址去查看代码,下面是本人的笔记 建立一个带有隐藏层的神经 ...

随机推荐

  1. MySql 主从(备)部署 | 冷备份

    前言 MySQL 主从复制(Master-Slave Replication)是一种常见的数据库架构设计,用于提高数据可用性.实现读写分离以及支持备份策略.冷备份是指在数据库关闭状态下进行的数据备份方 ...

  2. JMeter 定义 User 随机数变量无效

    Jmeter 定义 User 随机数变量无效 随机数方法: RandomString10 ${__RandomString(10,ABCDEFGHIJKLMNOPQRSTUVWXYZ)} Random ...

  3. 实现领域驱动设计 - 使用ABP框架 - 聚合

    这是本指南的关键部分.我们将通过实例介绍和解释一些明确的规则.在实现领域驱动设计时,您可以遵循这些规则并将其应用到您的解决方案中 领域案例 这些例子将使用GitHub中使用的一些概念,比如Issue, ...

  4. Codeforces Round 954 (Div. 3)

    A. X Axis 1.既然要求每个点到a到距离之和最小,不妨让点a为3个点中的中间点,也就是先对三个数从小到大排序,然后输出首尾数减中间值的绝对值之和即可 #include <bits/std ...

  5. .net WorkFlow 流程介绍

    WikeFlow官网:www.wikesoft.com WikeFlow学习版演示地址:workflow.wikesoft.com WikeFlow学习版源代码下载:https://gitee.com ...

  6. jmeter返回数据重新编码的方法

    下图内容为请求后的返回值,红色箭头内容是需要正则处理传参给后面的接口使用 其中==后面的\U0026为未编码内容 而实际能够提交的链接为下图"&" 所以,图1请求后需要先转 ...

  7. 【完结】【一本通提高】KMP做题记录

    题目编号 标题 估分 正确 提交 Y 2076 Problem  A [一本通提高篇KMP]剪花布条 --- 156 293 Y 2077 Problem  B [一本通提高篇KMP]Radio Tr ...

  8. Spring基于XML的事务管理器DataSourceTransactionManager

    Spring基于XML的事务管理器DataSourceTransactionManager 源码 代码测试 pom.xml <?xml version="1.0" encod ...

  9. Java编程--接口(interface)简单用法(一)

    接口是Java中的一个重要的概念. interface:定义了子类要实现的功能.由全局常量和抽象方法组成. 接口的定义 定义一个简单的interface public interface A {  p ...

  10. 【安装】各平台下安装低版本CUDA的PyTorch

    目前直接点开官网,看到的安装链接是这样的: 倘若你的系统的CUDA版本恰好是11.2,而且又懒得升级,可以采取指定版本安装的方式装PyTorch: 运行指令,查看自己的显卡的版本号: nvidia-s ...