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
17a4228a
Commit
17a4228a
authored
Jul 22, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrong dataset in dorefa
parent
1f3eaf97
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
examples/Atari2600/common.py
examples/Atari2600/common.py
+1
-1
examples/DoReFa-Net/alexnet-dorefa.py
examples/DoReFa-Net/alexnet-dorefa.py
+1
-3
examples/mnist-convnet.py
examples/mnist-convnet.py
+2
-3
tensorpack/models/nonlin.py
tensorpack/models/nonlin.py
+1
-1
No files found.
examples/Atari2600/common.py
View file @
17a4228a
...
...
@@ -54,7 +54,7 @@ def eval_with_funcs(predict_funcs, nr_eval):
k
.
start
()
stat
=
StatCounter
()
try
:
for
_
in
tqdm
(
range
(
nr_eval
)):
for
_
in
tqdm
(
range
(
nr_eval
)
,
**
get_tqdm_kwargs
()
):
r
=
q
.
get
()
stat
.
feed
(
r
)
except
:
...
...
examples/DoReFa-Net/alexnet-dorefa.py
View file @
17a4228a
...
...
@@ -155,9 +155,7 @@ class Model(ModelDesc):
def
get_data
(
dataset_name
):
isTrain
=
dataset_name
==
'train'
#ds = dataset.ILSVRC12(args.data, dataset_name,
#shuffle=True if isTrain else False)
ds
=
dataset
.
ILSVRC12
(
'/home/wyx/data/fake_ilsvrc'
,
dataset_name
,
ds
=
dataset
.
ILSVRC12
(
args
.
data
,
dataset_name
,
shuffle
=
True
if
isTrain
else
False
)
meta
=
dataset
.
ILSVRCMeta
()
...
...
examples/mnist-convnet.py
View file @
17a4228a
...
...
@@ -9,7 +9,6 @@ import os, sys
import
argparse
from
tensorpack
import
*
from
tensorpack.tfutils.summary
import
add_moving_summary
"""
MNIST ConvNet example.
...
...
@@ -52,13 +51,13 @@ class Model(ModelDesc):
wrong
=
symbolic_functions
.
prediction_incorrect
(
logits
,
label
)
nr_wrong
=
tf
.
reduce_sum
(
wrong
,
name
=
'wrong'
)
# monitor training error
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train_error'
))
summary
.
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train_error'
))
# weight decay on all W of fc layers
wd_cost
=
tf
.
mul
(
1e-5
,
regularize_cost
(
'fc.*/W'
,
tf
.
nn
.
l2_loss
),
name
=
'regularize_loss'
)
add_moving_summary
(
cost
,
wd_cost
)
summary
.
add_moving_summary
(
cost
,
wd_cost
)
summary
.
add_param_summary
([(
'.*/W'
,
[
'histogram'
])])
# monitor histogram of all W
self
.
cost
=
tf
.
add_n
([
wd_cost
,
cost
],
name
=
'cost'
)
...
...
tensorpack/models/nonlin.py
View file @
17a4228a
...
...
@@ -14,7 +14,7 @@ __all__ = ['Maxout', 'PReLU', 'LeakyReLU', 'BNReLU', 'NonLinearity']
@
layer_register
(
log_shape
=
False
)
def
Maxout
(
x
,
num_unit
):
"""
Maxout
networks
as in `Maxout Networks <http://arxiv.org/abs/1302.4389>`_.
Maxout as in `Maxout Networks <http://arxiv.org/abs/1302.4389>`_.
:param input: a NHWC or NC tensor.
:param num_unit: a int. must be divisible by C.
...
...
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