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
101d7aa5
Commit
101d7aa5
authored
Jul 22, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs; fix predictor
parent
b673b24c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
34 deletions
+27
-34
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
+14
-9
.travis.yml
.travis.yml
+2
-2
README.md
README.md
+2
-3
examples/FasterRCNN/basemodel.py
examples/FasterRCNN/basemodel.py
+2
-1
tensorpack/callbacks/graph.py
tensorpack/callbacks/graph.py
+1
-1
tensorpack/predict/base.py
tensorpack/predict/base.py
+6
-18
No files found.
.github/ISSUE_TEMPLATE.md
View file @
101d7aa5
An issue has to be one of the following:
1.
Unexpected Problems / Potential Bugs
2.
Feature Requests
3.
Usage Questions
-
[ ]
Unexpected Problems / Potential Bugs
-
[ ]
Feature Requests
-
[ ] Questions on Using/Understanding Tensorpack
For any unexpected problems, __PLEASE ALWAYS INCLUDE__:
1.
What you did:
...
...
@@ -20,19 +20,24 @@ For any unexpected problems, __PLEASE ALWAYS INCLUDE__:
+
Tensorpack version:
`python -c 'import tensorpack; print(tensorpack.__version__)'`
.
You can install Tensorpack master by
`pip install -U git+https://github.com/ppwwyyxx/tensorpack.git`
.:
+
Hardware information, if relevant.
5.
About efficiency, PLEASE first read http://tensorpack.readthedocs.io/en/latest/tutorial/performance-tuning.html
For efficiency issues, PLEASE first read http://tensorpack.readthedocs.io/en/latest/tutorial/performance-tuning.html
Feature Requests:
+
You can implement a lot of features by extending
t
ensorpack
+
You can implement a lot of features by extending
T
ensorpack
(See http://tensorpack.readthedocs.io/en/latest/tutorial/index.html#extend-tensorpack).
It does not have to be added to tensorpack unless you have a good reason.
+
We don't take feature requests for examples or implementing papers.
It does not have to be added to Tensorpack unless you have a good reason.
+
"Could you improve/implement an example/paper ?"
-- the answer is: we don't know, and we don't take feature requests for
examples. You should do it yourself with Tensorpack. If you don't know how to
do it, you may ask a usage question.
Usage Questions:
+
Read the
[
tutorials
](
http://tensorpack.readthedocs.io/en/latest/tutorial/index.html#user-tutorials
)
first.
+
We answer "HOW to do X in tensorpack" for a well-defined X.
+
We answer "HOW to do X with Tensorpack" for a well-defined X.
We also answer "HOW/WHY Tensorpack does X" for some X that Tensorpack or its examples are doing.
We don't answer general machine learning questions,
such as "what networks to use" or "I don't understand the paper".
such as "wh
y my training doesn't converge", "wh
at networks to use" or "I don't understand the paper".
You can also use gitter (https://gitter.im/tensorpack/users) for more casual discussions.
.travis.yml
View file @
101d7aa5
...
...
@@ -26,10 +26,10 @@ matrix:
env
:
TF_VERSION=1.3.0 TF_TYPE=release
-
os
:
linux
python
:
2.7
env
:
TF_VERSION=1.
8
.0 TF_TYPE=release
env
:
TF_VERSION=1.
9
.0 TF_TYPE=release
-
os
:
linux
python
:
3.5
env
:
TF_VERSION=1.
8
.0 TF_TYPE=release PYPI=true
env
:
TF_VERSION=1.
9
.0 TF_TYPE=release PYPI=true
-
os
:
linux
python
:
2.7
env
:
TF_TYPE=nightly
...
...
README.md
View file @
101d7aa5
...
...
@@ -62,11 +62,10 @@ demonstrating its flexibility for actual research.
Dependencies:
+
Python 2.7 or 3.3+
+
Python 2.7 or 3.3+
. Python 2.7 is supported until
[
it retires in 2020
](
https://pythonclock.org/
)
.
+
Python bindings for OpenCV (Optional, but required by a lot of features)
+
TensorFlow >= 1.3.
0 (Optional if you only want to use
`tensorpack.dataflow`
alone as a data processing library
)
+
TensorFlow >= 1.3.
(If you only want to use
`tensorpack.dataflow`
alone as a data processing library, TensorFlow is not needed
)
```
# install git, then:
pip install --upgrade git+https://github.com/tensorpack/tensorpack.git
# or add `--user` to avoid system-wide installation.
```
...
...
examples/FasterRCNN/basemodel.py
View file @
101d7aa5
...
...
@@ -72,7 +72,8 @@ def backbone_argscope():
def
maybe_syncbn_scope
():
if
cfg
.
BACKBONE
.
NORM
==
'SyncBN'
:
assert
cfg
.
BACKBONE
.
FREEZE_AT
==
2
# TODO add better support
with
argscope
(
BatchNorm
,
training
=
None
,
sync_statistics
=
'nccl'
):
with
argscope
(
BatchNorm
,
training
=
None
,
sync_statistics
=
'nccl'
if
cfg
.
TRAINER
==
'replicated'
else
'horovod'
):
yield
else
:
yield
...
...
tensorpack/callbacks/graph.py
View file @
101d7aa5
...
...
@@ -28,7 +28,7 @@ class RunOp(Callback):
"""
Args:
op (tf.Operation or function): an Op, or a function that returns the Op in the graph.
The function will be called
later
(in the `setup_graph` callback).
The function will be called
after the main graph has been created
(in the `setup_graph` callback).
run_before (bool): run the Op before training
run_as_trigger (bool): run the Op on every :meth:`trigger()` call.
run_step (bool): run the Op every step (along with training)
...
...
tensorpack/predict/base.py
View file @
101d7aa5
...
...
@@ -118,12 +118,12 @@ class OnlinePredictor(PredictorBase):
else
:
self
.
_callable
=
None
def
_do_call_old
(
self
,
dp
):
feed
=
dict
(
zip
(
self
.
input_tensors
,
dp
))
output
=
self
.
sess
.
run
(
self
.
output_tensors
,
feed_dict
=
feed
)
return
output
def
_do_call
(
self
,
dp
):
assert
len
(
dp
)
==
len
(
self
.
input_tensors
),
\
"{} != {}"
.
format
(
len
(
dp
),
len
(
self
.
input_tensors
))
if
self
.
sess
is
None
:
self
.
sess
=
tf
.
get_default_session
()
def
_do_call_new
(
self
,
dp
):
if
self
.
_callable
is
None
:
self
.
_callable
=
self
.
sess
.
make_callable
(
fetches
=
self
.
output_tensors
,
...
...
@@ -131,19 +131,7 @@ class OnlinePredictor(PredictorBase):
accept_options
=
self
.
ACCEPT_OPTIONS
)
# run_metadata = tf.RunMetadata()
# options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE)
ret
=
self
.
_callable
(
*
dp
)
return
ret
def
_do_call
(
self
,
dp
):
assert
len
(
dp
)
==
len
(
self
.
input_tensors
),
\
"{} != {}"
.
format
(
len
(
dp
),
len
(
self
.
input_tensors
))
if
self
.
sess
is
None
:
self
.
sess
=
tf
.
get_default_session
()
if
self
.
_use_callable
:
return
self
.
_do_call_new
(
dp
)
else
:
return
self
.
_do_call_old
(
dp
)
return
self
.
_callable
(
*
dp
)
class
OfflinePredictor
(
OnlinePredictor
):
...
...
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