Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
87493f49
"...models/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "413b71032e20df1a1a99b0a63ee7b227a89b5683"
Commit
87493f49
authored
Jun 22, 2016
by
Davis King
Browse files
Added some comments
parent
f453b03f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
examples/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