Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
87493f49
Commit
87493f49
authored
Jun 23, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some comments
parent
f453b03f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
dnn_imagenet_ex.cpp
examples/dnn_imagenet_ex.cpp
+6
-1
No files found.
examples/dnn_imagenet_ex.cpp
View file @
87493f49
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
using the deep learning tools from the dlib C++ Library. We will use the pretrained
using the deep learning tools from the dlib C++ Library. We will use the pretrained
ResNet34 model available on the dlib website.
ResNet34 model available on the dlib website.
The ResNet34 model is from Deep Residual Learning for Image Recognition by He, Zhang,
Ren, and Sun.
These tools will use CUDA and cuDNN to drastically accelerate network
These tools will use CUDA and cuDNN to drastically accelerate network
training and testing. CMake should automatically find them if they are
training and testing. CMake should automatically find them if they are
...
@@ -100,7 +103,9 @@ int main(int argc, char** argv) try
...
@@ -100,7 +103,9 @@ int main(int argc, char** argv) try
{
{
std
::
vector
<
string
>
labels
;
std
::
vector
<
string
>
labels
;
anet_type
net
;
anet_type
net
;
// get this file from http://dlib.net/files/resnet34_1000_imagenet_classifier.dnn.bz2
// Get this file from http://dlib.net/files/resnet34_1000_imagenet_classifier.dnn.bz2
// This pretrained model has a top5 error of 7.572% on the 2012 imagenet validation
// dataset.
deserialize
(
"resnet34_1000_imagenet_classifier.dnn"
)
>>
net
>>
labels
;
deserialize
(
"resnet34_1000_imagenet_classifier.dnn"
)
>>
net
>>
labels
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment