【中英】【吴恩达课后测验】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. nginx 配置go服务反向代理

    nginx 配置 详细请看Nginx 极简教程 server { listen 80; server_name localhost; #charset koi8-r; # nginx访问活动日志 ac ...

  2. 【VMware VCF】解决 VCF 环境中组件用户密码过期问题。

    由于长时间没有启动 VCF 环境,现在在启动 SDDC Manager 组件后,UI 一直处于如下图所示的"初始化"状态.当时第一直觉就认为肯定是 VCF 环境组件的用户密码过期了 ...

  3. iis 固定回收问题

    项目背景:站点有一个计算业务场景,耗时较久.    偶发性发生:进度条过程中,发生卡死.日志没有然后记录.    查看windows 事件,问题时间 有was  自动回收 当前站点 ,如下图 后设置 ...

  4. RabbitMQ持久化+消息执行优先级

    持久化   channel.QueueDeclare(queue:"hello",//队列名 durable:true,//持久化  exclusive:false,//排他性,该 ...

  5. ASP.NET之设置默认文档

    通常... <!--Web.config--> <configuration> <!--指定默认文档 Start Author:JAnnn Time:2015-01-10 ...

  6. 必须添加对程序集"System.Core"的引用

    异常波浪线 解决办法 <system.web> <compilation> <assemblies> <add assembly="System.C ...

  7. SpringBoot的自动装配原理

    Spring Boot 的自动装配(Auto-Configuration)是其核心特性之一,它极大地简化了Spring应用的配置过程. import org.springframework.boot. ...

  8. robotframework之添加browser库

    browser库的官网地址需要FQ,在网上找到了不需要FQ的版本 robotframework-browser · PyPI 1.下载node.js 下载地址:https://nodejs.org/e ...

  9. .NET AI从0开始入门 SemanticKernel 从基础到实践

    引言 本教程将带你全面了解SemanticKernel,一款强大的AI开发工具包.以下内容基于实际代码示例,帮助你快速掌握使用技巧. 资源链接: 教程代码仓库:https://github.com/A ...

  10. 【代码】Android|获取存储权限并创建、存储文件

    版本:Android 11及以上,gradle 7.0以上,Android SDK > 29 获取存储权限 获取存储权限参考:Android 11 外部存储权限适配指南及方案,这篇文章直接翻到最 ...