Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
03b92aba
Commit
03b92aba
authored
Jun 20, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cifar number with new bn
parent
5a8d500c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
examples/ResNet/cifar10-resnet.py
examples/ResNet/cifar10-resnet.py
+6
-6
examples/cifar-convnet.py
examples/cifar-convnet.py
+7
-2
No files found.
examples/ResNet/cifar10-resnet.py
View file @
03b92aba
...
@@ -13,15 +13,15 @@ from tensorpack.tfutils.symbolic_functions import *
...
@@ -13,15 +13,15 @@ from tensorpack.tfutils.symbolic_functions import *
from
tensorpack.tfutils.summary
import
*
from
tensorpack.tfutils.summary
import
*
"""
"""
CIFAR10
-resnet example.
CIFAR10
ResNet example. See:
Deep Residual Learning for Image Recognition, arxiv:1512.03385
Deep Residual Learning for Image Recognition, arxiv:1512.03385
This implementation uses the variants proposed in:
This implementation uses the variants proposed in:
Identity Mappings in Deep Residual Networks, arxiv:1603.05027
Identity Mappings in Deep Residual Networks, arxiv:1603.05027
I can reproduce the results for
I can reproduce the results
on 2 TitanX
for
n=5, about 7.1
%
val error after 67k step
with 2 TitanX (6.1it
/s)
n=5, about 7.1
%
val error after 67k step
(8.6 step
/s)
n=18, about
6.0
%
val error after 62k step with 2 TitanX (about 10hr
)
n=18, about
5.7
%
val error (2.45 step/s
)
n=30: a 182-layer network, about 5.6
%
val error after 51k step
with 2 GPUs
n=30: a 182-layer network, about 5.6
%
val error after 51k step
(1.55 step/s)
This model uses the whole training set instead of a train-val split.
This model uses the whole training set instead of a train-val split.
"""
"""
...
@@ -169,7 +169,7 @@ def get_config():
...
@@ -169,7 +169,7 @@ def get_config():
session_config
=
sess_config
,
session_config
=
sess_config
,
model
=
Model
(
n
=
18
),
model
=
Model
(
n
=
18
),
step_per_epoch
=
step_per_epoch
,
step_per_epoch
=
step_per_epoch
,
max_epoch
=
5
00
,
max_epoch
=
4
00
,
)
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
examples/cifar-convnet.py
View file @
03b92aba
...
@@ -13,9 +13,14 @@ import tensorpack.tfutils.symbolic_functions as symbf
...
@@ -13,9 +13,14 @@ import tensorpack.tfutils.symbolic_functions as symbf
from
tensorpack.tfutils.summary
import
*
from
tensorpack.tfutils.summary
import
*
"""
"""
A small convnet model for
cifar 10 or c
ifar100 dataset.
A small convnet model for
Cifar10 or C
ifar100 dataset.
For Cifar10: 90
%
validation accuracy after 40k step.
Cifar10:
90
%
validation accuracy after 40k step.
91
%
accuracy after 80k step.
18.8 step/s on TitanX
Not a good for Cifar100, just for demonstration.
"""
"""
class
Model
(
ModelDesc
):
class
Model
(
ModelDesc
):
...
...
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