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
13dc646b
Commit
13dc646b
authored
Jan 07, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update sphinx requirements, add missing docs
parent
ab1951d5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
2 deletions
+44
-2
docs/modules/index.rst
docs/modules/index.rst
+16
-0
docs/requirements.txt
docs/requirements.txt
+1
-0
docs/user/glance.md
docs/user/glance.md
+5
-0
docs/user/tutorials.rst
docs/user/tutorials.rst
+12
-0
examples/ConvolutionalPoseMachines/load-cpm.py
examples/ConvolutionalPoseMachines/load-cpm.py
+9
-1
examples/DoReFa-Net/alexnet-dorefa.py
examples/DoReFa-Net/alexnet-dorefa.py
+1
-1
No files found.
docs/modules/index.rst
0 → 100644
View file @
13dc646b
API Documentation
--------------------
.. toctree::
:maxdepth: 1
tensorpack.models
tensorpack.dataflow
tensorpack.callbacks
tensorpack.train
tensorpack.utils
tensorpack.tfutils
tensorpack.predict
tensorpack.RL
docs/requirements.txt
View file @
13dc646b
...
...
@@ -3,4 +3,5 @@ numpy
tqdm
nltk
decorator
Sphinx==1.5.1
recommonmark==0.4.0
docs/user/glance.md
0 → 100644
View file @
13dc646b
## A High-Level Glance
TODO
docs/user/tutorials.rst
0 → 100644
View file @
13dc646b
Tutorials
---------------------
Test.
.. toctree::
:maxdepth: 2
glance
dataflow
models
examples/ConvolutionalPoseMachines/load-cpm.py
View file @
13dc646b
...
...
@@ -14,6 +14,15 @@ from tensorpack.utils.argtools import memoized
import
matplotlib.pyplot
as
plt
_CM
=
plt
.
get_cmap
(
'jet'
)
"""
15 channels:
0-1 head, neck
2-4 right shoulder, right elbow, right wrist
5-7 left shoulder, left elbow, left wrist
8-10 right hip, right knee, right ankle
11-13 left hip, left knee, left ankle
14: background
"""
def
colorize
(
img
,
heatmap
):
""" img: bgr, [0,255]
...
...
@@ -37,7 +46,6 @@ def get_gaussian_map():
class
Model
(
ModelDesc
):
def
_get_input_vars
(
self
):
return
[
InputVar
(
tf
.
float32
,
(
None
,
368
,
368
,
3
),
'input'
),
InputVar
(
tf
.
float32
,
(
None
,
368
,
368
,
15
),
'label'
),
...
...
examples/DoReFa-Net/alexnet-dorefa.py
View file @
13dc646b
...
...
@@ -155,7 +155,7 @@ class Model(ModelDesc):
add_moving_summary
(
tf
.
reduce_mean
(
wrong
,
name
=
'train-error-top5'
))
# weight decay on all W of fc layers
wd_cost
=
regularize_cost
(
'fc.*/W'
,
l2_regularizer
(
5e-6
))
wd_cost
=
regularize_cost
(
'fc.*/W'
,
l2_regularizer
(
5e-6
)
,
name
=
'regularize_cost'
)
add_param_summary
((
'.*/W'
,
[
'histogram'
,
'rms'
]))
self
.
cost
=
tf
.
add_n
([
cost
,
wd_cost
],
name
=
'cost'
)
...
...
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