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
da8899e7
You need to sign in or sign up before continuing.
Commit
da8899e7
authored
Mar 28, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cifar preprocessing
parent
84a8d8d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/GAN/DiscoGAN-CelebA.py
examples/GAN/DiscoGAN-CelebA.py
+1
-1
examples/ResNet/cifar10-resnet.py
examples/ResNet/cifar10-resnet.py
+2
-2
No files found.
examples/GAN/DiscoGAN-CelebA.py
View file @
da8899e7
...
@@ -220,7 +220,7 @@ if __name__ == '__main__':
...
@@ -220,7 +220,7 @@ if __name__ == '__main__':
dataflow
=
data
,
dataflow
=
data
,
callbacks
=
[
ModelSaver
()],
callbacks
=
[
ModelSaver
()],
steps_per_epoch
=
300
,
steps_per_epoch
=
300
,
max_epoch
=
100
0
,
max_epoch
=
25
0
,
session_init
=
SaverRestore
(
args
.
load
)
if
args
.
load
else
None
session_init
=
SaverRestore
(
args
.
load
)
if
args
.
load
else
None
)
)
...
...
examples/ResNet/cifar10-resnet.py
View file @
da8899e7
...
@@ -22,7 +22,7 @@ Identity Mappings in Deep Residual Networks, arxiv:1603.05027
...
@@ -22,7 +22,7 @@ Identity Mappings in Deep Residual Networks, arxiv:1603.05027
I can reproduce the results on 2 TitanX for
I can reproduce the results on 2 TitanX for
n=5, about 7.1
%
val error after 67k steps (20.4 step/s)
n=5, about 7.1
%
val error after 67k steps (20.4 step/s)
n=18, about 5.95
%
val error after 80k steps (5.6 step/s)
n=18, about 5.95
%
val error after 80k steps (5.6 step/s
, not converged
)
n=30: a 182-layer network, about 5.6
%
val error after 51k steps (3.4 step/s)
n=30: a 182-layer network, about 5.6
%
val error after 51k steps (3.4 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.
...
@@ -46,7 +46,7 @@ class Model(ModelDesc):
...
@@ -46,7 +46,7 @@ class Model(ModelDesc):
def
_build_graph
(
self
,
inputs
):
def
_build_graph
(
self
,
inputs
):
image
,
label
=
inputs
image
,
label
=
inputs
image
=
image
/
128.0
-
1
image
=
image
/
128.0
image
=
tf
.
transpose
(
image
,
[
0
,
3
,
1
,
2
])
image
=
tf
.
transpose
(
image
,
[
0
,
3
,
1
,
2
])
def
residual
(
name
,
l
,
increase_dim
=
False
,
first
=
False
):
def
residual
(
name
,
l
,
increase_dim
=
False
,
first
=
False
):
...
...
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