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
ab1575da
Commit
ab1575da
authored
Dec 18, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more cleanup
parent
b87ecad5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dnn_metric_learning_on_images_ex.cpp
examples/dnn_metric_learning_on_images_ex.cpp
+2
-4
No files found.
examples/dnn_metric_learning_on_images_ex.cpp
View file @
ab1575da
...
@@ -161,11 +161,9 @@ template <typename SUBNET> using alevel2 = ares<256,ares<256,ares<256,ares<256,a
...
@@ -161,11 +161,9 @@ template <typename SUBNET> using alevel2 = ares<256,ares<256,ares<256,ares<256,a
template
<
typename
SUBNET
>
using
alevel3
=
ares
<
128
,
ares
<
128
,
ares
<
128
,
ares_down
<
128
,
SUBNET
>>>>
;
template
<
typename
SUBNET
>
using
alevel3
=
ares
<
128
,
ares
<
128
,
ares
<
128
,
ares_down
<
128
,
SUBNET
>>>>
;
template
<
typename
SUBNET
>
using
alevel4
=
ares
<
64
,
ares
<
64
,
ares
<
64
,
SUBNET
>>>
;
template
<
typename
SUBNET
>
using
alevel4
=
ares
<
64
,
ares
<
64
,
ares
<
64
,
SUBNET
>>>
;
template
<
typename
SUBNET
>
using
final_pooling
=
avg_pool_everything
<
SUBNET
>
;
template
<
typename
SUBNET
>
using
afinal_pooling
=
avg_pool_everything
<
SUBNET
>
;
// training network type
// training network type
using
net_type
=
loss_metric
<
fc_no_bias
<
128
,
final_pool
ing
<
using
net_type
=
loss_metric
<
fc_no_bias
<
128
,
avg_pool_everyth
ing
<
level1
<
level1
<
level2
<
level2
<
level3
<
level3
<
...
@@ -175,7 +173,7 @@ using net_type = loss_metric<fc_no_bias<128,final_pooling<
...
@@ -175,7 +173,7 @@ using net_type = loss_metric<fc_no_bias<128,final_pooling<
>>>>>>>>>>>
;
>>>>>>>>>>>
;
// testing network type (replaced batch normalization with fixed affine transforms)
// testing network type (replaced batch normalization with fixed affine transforms)
using
anet_type
=
loss_metric
<
fc_no_bias
<
128
,
a
final_pool
ing
<
using
anet_type
=
loss_metric
<
fc_no_bias
<
128
,
a
vg_pool_everyth
ing
<
alevel1
<
alevel1
<
alevel2
<
alevel2
<
alevel3
<
alevel3
<
...
...
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