Main Content

Darknet19

DarkNet-19卷积神经网络

  • DarkNet-19网络体系结构

Description

Darknet-19是一个卷积神经网络,深度为19层。您可以从ImageNet数据库中加载经过超过一百万张图像训练的网络版本[1]。预处理的网络可以将图像分类为1000个对象类别,例如键盘,鼠标,铅笔和许多动物。结果,该网络已经为广泛的图像学习了丰富的功能表示。该网络的图像输入大小为256 by-256。在MATLAB中进行更多预处理的网络®, 看Pretrained Deep Neural Networks

You can useclassify使用DarkNet-19模型对新图像进行分类。遵循步骤Classify Image Using GoogLeNet并用Darknet-19代替Googlenet。

要在新的分类任务上重新训练网络,请遵循Train Deep Learning Network to Classify New Images并加载Darknet-19而不是Googlenet。

DarkNet-19 is often used as the foundation for object detection problems and YOLO workflows[2]。有关如何训练您只看一次(YOLO)V2对象检测器的示例,请参见使用Yolo V2深学习的对象检测。This example uses ResNet-50 for feature extraction. You can also use other pretrained networks such as DarkNet-19, DarkNet-53, MobileNet-v2, or ResNet-18 depending on application requirements.

例子

net= darknet19返回在ImageNet数据集上训练的DarkNet-19网络。

此功能需要深度学习工具箱™模型对于DarkNet-19网络万博1manbetx支持包。如果未安装此支持万博1manbetx包,则该功能提供了下载链接。

net= darknet19('striges','imagenet'返回在ImageNet数据集上训练的DarkNet-19网络。该语法等同于net = darknet19

= darknet19('striges','没有任何'返回未经训练的DarkNet-19网络体系结构。未经训练的模型不需要支持包。万博1manbetx

例子

全部收缩

下载并安装深度学习工具箱模型对于DarkNet-19网络万博1manbetx支持包。

TypeDarknet19在命令行。

Darknet19

如果深度学习工具箱模型对于DarkNet-19网络support package is not installed, then the function provides a link to the required support package in the Add-On Explorer. To install the support package, click the link, and then click安装。Check that the installation is successful by typingDarknet19在命令行。如果安装了所需的支持软件包,则该万博1manbetx功能返回系列网络object.

Darknet19
ans =带有属性的系列网络:层:[64×1 nnet.cnn.layer.layer] inputNames:{'input'} outputnames:{'oppote'}

使用深网设计器可视化网络。

deepNetworkDesigner(darknet19)

Explore other pretrained networks in Deep Network Designer by clickingNew

深网设计师开始页面显示可用的验证网络

如果您需要下载网络,请在所需的网络上暂停,然后单击安装打开附加探索器。

You can use transfer learning to retrain the network to classify a new set of images.

打开示例Train Deep Learning Network to Classify New Images。原始示例使用了Googlenet预验证的网络。要使用不同的网络执行转移学习,请加载您所需的预处理网络,并按照示例中的步骤操作。

Load the DarkNet-19 network instead of GoogLeNet.

net = darknet19

请按照示例中的其余步骤进行重新训练。您必须使用新的培训层替换网络中的最后可学习层和分类层。该示例显示了如何查找要替换的层。

输出参数

全部收缩

预处理的Darknet-19卷积神经网络,以系列网络object.

未经训练的Darknet-19卷积神经网络体系结构,以Layer大批。

References

[1]成像网。http://www.image-net.org

[2]雷德蒙,约瑟夫。“ Darknet:C。开源神经网络。”https://pjreddie.com/darknet。

扩展功能

版本历史记录

在R2020a中引入