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
482c2db7
Commit
482c2db7
authored
May 07, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the location of the set_synchronization_file() call so that rerunning
the example restarts correctly.
parent
c4792198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dnn_introduction2_ex.cpp
examples/dnn_introduction2_ex.cpp
+1
-1
No files found.
examples/dnn_introduction2_ex.cpp
View file @
482c2db7
...
...
@@ -267,7 +267,6 @@ int main(int argc, char** argv) try
//dnn_trainer<net_type,adam> trainer(net,adam(0.0005, 0.9, 0.999), {0,1});
trainer
.
be_verbose
();
trainer
.
set_synchronization_file
(
"mnist_resnet_sync"
,
std
::
chrono
::
seconds
(
100
));
// While the trainer is running it keeps an eye on the training error. If
// it looks like the error hasn't decreased for the last 2000 iterations it
// will automatically reduce the learning rate by 0.1. You can change these
...
...
@@ -277,6 +276,7 @@ int main(int argc, char** argv) try
trainer
.
set_learning_rate_shrink_factor
(
0.1
);
// The learning rate will start at 1e-3.
trainer
.
set_learning_rate
(
1e-3
);
trainer
.
set_synchronization_file
(
"mnist_resnet_sync"
,
std
::
chrono
::
seconds
(
100
));
// Now, what if your training dataset is so big it doesn't fit in RAM? You
...
...
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