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
0a5739fa
You need to sign in or sign up before continuing.
Commit
0a5739fa
authored
Nov 27, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
50d95344
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
36 deletions
+13
-36
.github/ISSUE_TEMPLATE/unexpected-problems---bugs.md
.github/ISSUE_TEMPLATE/unexpected-problems---bugs.md
+1
-1
README.md
README.md
+1
-1
examples/FasterRCNN/README.md
examples/FasterRCNN/README.md
+1
-1
tensorpack/__init__.py
tensorpack/__init__.py
+1
-1
tensorpack/dataflow/common.py
tensorpack/dataflow/common.py
+2
-7
tensorpack/libinfo.py
tensorpack/libinfo.py
+3
-2
tensorpack/tfutils/common.py
tensorpack/tfutils/common.py
+1
-1
tensorpack/train/config.py
tensorpack/train/config.py
+1
-20
tensorpack/train/trainers.py
tensorpack/train/trainers.py
+2
-2
No files found.
.github/ISSUE_TEMPLATE/unexpected-problems---bugs.md
View file @
0a5739fa
...
@@ -35,7 +35,7 @@ For example, CPU/GPU utilization, output images, tensorboard curves, if relevant
...
@@ -35,7 +35,7 @@ For example, CPU/GPU utilization, output images, tensorboard curves, if relevant
### 4. Your environment:
### 4. Your environment:
+
Python version:
+
Python version:
+
TF version:
`python -c 'import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)'`
.
+
TF version:
`python -c 'import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)'`
.
+
Tensorpack version:
`python -c 'import tensorpack; print(tensorpack.__version__)'`
.
+
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`
You can install Tensorpack master by
`pip install -U git+https://github.com/ppwwyyxx/tensorpack.git`
and see if your issue is already solved.
and see if your issue is already solved.
+
If you're not using tensorpack under a normal command line shell (e.g.,
+
If you're not using tensorpack under a normal command line shell (e.g.,
...
...
README.md
View file @
0a5739fa
...
@@ -67,7 +67,7 @@ Dependencies:
...
@@ -67,7 +67,7 @@ Dependencies:
+
TensorFlow >= 1.3. (If you only want to use
`tensorpack.dataflow`
alone as a data processing library, TensorFlow is not needed)
+
TensorFlow >= 1.3. (If you only want to use
`tensorpack.dataflow`
alone as a data processing library, TensorFlow is not needed)
```
```
pip install --upgrade git+https://github.com/tensorpack/tensorpack.git
pip install --upgrade git+https://github.com/tensorpack/tensorpack.git
# or add `--user` to
avoid system-wide installation.
# or add `--user` to
install to user's local directories
```
```
## Citing Tensorpack:
## Citing Tensorpack:
...
...
examples/FasterRCNN/README.md
View file @
0a5739fa
...
@@ -12,7 +12,7 @@ with the support of:
...
@@ -12,7 +12,7 @@ with the support of:
+
[
Group Normalization
](
https://arxiv.org/abs/1803.08494
)
+
[
Group Normalization
](
https://arxiv.org/abs/1803.08494
)
## Dependencies
## Dependencies
+
Python 3; OpenCV.
+
Python 3
.3+
; OpenCV.
+
TensorFlow >= 1.6 (1.4 or 1.5 can run but may crash due to a TF bug);
+
TensorFlow >= 1.6 (1.4 or 1.5 can run but may crash due to a TF bug);
+
pycocotools:
`pip install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'`
+
pycocotools:
`pip install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'`
+
Pre-trained
[
ImageNet ResNet model
](
http://models.tensorpack.com/FasterRCNN/
)
+
Pre-trained
[
ImageNet ResNet model
](
http://models.tensorpack.com/FasterRCNN/
)
...
...
tensorpack/__init__.py
View file @
0a5739fa
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# File: __init__.py
# File: __init__.py
from
tensorpack.libinfo
import
__version__
,
_HAS_TF
from
tensorpack.libinfo
import
__version__
,
_
_git_version__
,
_
HAS_TF
from
tensorpack.utils
import
*
from
tensorpack.utils
import
*
from
tensorpack.dataflow
import
*
from
tensorpack.dataflow
import
*
...
...
tensorpack/dataflow/common.py
View file @
0a5739fa
...
@@ -687,7 +687,7 @@ class PrintData(ProxyDataFlow):
...
@@ -687,7 +687,7 @@ class PrintData(ProxyDataFlow):
...
...
"""
"""
def
__init__
(
self
,
ds
,
num
=
1
,
label
=
None
,
name
=
None
,
max_depth
=
3
,
max_list
=
3
):
def
__init__
(
self
,
ds
,
num
=
1
,
name
=
None
,
max_depth
=
3
,
max_list
=
3
):
"""
"""
Args:
Args:
ds (DataFlow): input DataFlow.
ds (DataFlow): input DataFlow.
...
@@ -698,12 +698,7 @@ class PrintData(ProxyDataFlow):
...
@@ -698,12 +698,7 @@ class PrintData(ProxyDataFlow):
"""
"""
super
(
PrintData
,
self
)
.
__init__
(
ds
)
super
(
PrintData
,
self
)
.
__init__
(
ds
)
self
.
num
=
num
self
.
num
=
num
self
.
name
=
name
if
label
:
log_deprecated
(
"PrintData(label, ..."
,
"Use PrintData(name, ... instead."
,
"2018-05-01"
)
self
.
name
=
label
else
:
self
.
name
=
name
self
.
cnt
=
0
self
.
cnt
=
0
self
.
max_depth
=
max_depth
self
.
max_depth
=
max_depth
self
.
max_list
=
max_list
self
.
max_list
=
max_list
...
...
tensorpack/libinfo.py
View file @
0a5739fa
...
@@ -57,6 +57,7 @@ except ImportError:
...
@@ -57,6 +57,7 @@ except ImportError:
_HAS_TF
=
False
_HAS_TF
=
False
# Th
is line has to be the last line of the file.
# Th
ese lines will be programatically read/write by setup.py
#
setup.py will use it to determine the version
#
Don't touch them.
__version__
=
'0.9.0.1'
__version__
=
'0.9.0.1'
__git_version__
=
__version__
tensorpack/tfutils/common.py
View file @
0a5739fa
...
@@ -147,7 +147,7 @@ def gpu_available_in_session():
...
@@ -147,7 +147,7 @@ def gpu_available_in_session():
return
False
return
False
@
deprecated
(
"
You should use get_tf_version_tuple instead due to the existence of TF 1.10
"
)
@
deprecated
(
"
Use get_tf_version_tuple instead."
,
"2019-01-31
"
)
def
get_tf_version_number
():
def
get_tf_version_number
():
return
float
(
'.'
.
join
(
tf
.
VERSION
.
split
(
'.'
)[:
2
]))
return
float
(
'.'
.
join
(
tf
.
VERSION
.
split
(
'.'
)[:
2
]))
...
...
tensorpack/train/config.py
View file @
0a5739fa
...
@@ -11,7 +11,7 @@ from ..callbacks import (
...
@@ -11,7 +11,7 @@ from ..callbacks import (
from
..dataflow.base
import
DataFlow
from
..dataflow.base
import
DataFlow
from
..graph_builder.model_desc
import
ModelDescBase
from
..graph_builder.model_desc
import
ModelDescBase
from
..utils
import
logger
from
..utils
import
logger
from
..tfutils.sessinit
import
SessionInit
,
SaverRestore
,
JustCurrentSession
from
..tfutils.sessinit
import
SessionInit
,
SaverRestore
from
..tfutils.sesscreate
import
NewSessionCreator
from
..tfutils.sesscreate
import
NewSessionCreator
from
..input_source
import
InputSource
from
..input_source
import
InputSource
...
@@ -154,25 +154,6 @@ class TrainConfig(object):
...
@@ -154,25 +154,6 @@ class TrainConfig(object):
self
.
tower
=
[
0
]
self
.
tower
=
[
0
]
assert
len
(
kwargs
)
==
0
,
"Unknown arguments: {}"
.
format
(
kwargs
.
keys
())
assert
len
(
kwargs
)
==
0
,
"Unknown arguments: {}"
.
format
(
kwargs
.
keys
())
@
property
def
nr_tower
(
self
):
logger
.
warn
(
"TrainConfig.nr_tower was deprecated! Set the number of GPUs on the trainer instead!"
)
logger
.
warn
(
"See https://github.com/tensorpack/tensorpack/issues/458 for more information."
)
return
len
(
self
.
tower
)
@
nr_tower
.
setter
def
nr_tower
(
self
,
value
):
logger
.
warn
(
"TrainConfig.nr_tower was deprecated! Set the number of GPUs on the trainer instead!"
)
logger
.
warn
(
"See https://github.com/tensorpack/tensorpack/issues/458 for more information."
)
self
.
tower
=
list
(
range
(
value
))
def
_deprecated_parsing
(
self
):
self
.
callbacks
=
self
.
callbacks
or
[]
self
.
extra_callbacks
=
DEFAULT_CALLBACKS
()
if
self
.
extra_callbacks
is
None
else
self
.
extra_callbacks
self
.
callbacks
.
extend
(
self
.
extra_callbacks
)
self
.
monitors
=
DEFAULT_MONITORS
()
if
self
.
monitors
is
None
else
self
.
monitors
self
.
session_init
=
self
.
session_init
or
JustCurrentSession
()
class
AutoResumeTrainConfig
(
TrainConfig
):
class
AutoResumeTrainConfig
(
TrainConfig
):
"""
"""
...
...
tensorpack/train/trainers.py
View file @
0a5739fa
...
@@ -11,7 +11,7 @@ from ..tfutils.sesscreate import NewSessionCreator
...
@@ -11,7 +11,7 @@ from ..tfutils.sesscreate import NewSessionCreator
from
..utils
import
logger
from
..utils
import
logger
from
..utils.argtools
import
map_arg
from
..utils.argtools
import
map_arg
from
..utils.develop
import
HIDE_DOC
from
..utils.develop
import
HIDE_DOC
,
log_deprecated
from
..tfutils
import
get_global_step_var
from
..tfutils
import
get_global_step_var
from
..tfutils.distributed
import
get_distributed_session_creator
from
..tfutils.distributed
import
get_distributed_session_creator
from
..tfutils.tower
import
TrainTowerContext
from
..tfutils.tower
import
TrainTowerContext
...
@@ -171,7 +171,7 @@ class SyncMultiGPUTrainerReplicated(SingleCostTrainer):
...
@@ -171,7 +171,7 @@ class SyncMultiGPUTrainerReplicated(SingleCostTrainer):
if
use_nccl
is
not
None
:
if
use_nccl
is
not
None
:
mode
=
'nccl'
if
use_nccl
else
None
mode
=
'nccl'
if
use_nccl
else
None
log
ger
.
warn
(
"use_nccl option was deprecated! Use the `mode` option instead!
"
)
log
_deprecated
(
"use_nccl option"
,
"Use the `mode` option instead!"
,
"2019-01-31
"
)
if
mode
is
None
:
if
mode
is
None
:
mode
=
'hierarchical'
if
len
(
gpus
)
>=
8
else
'nccl'
mode
=
'hierarchical'
if
len
(
gpus
)
>=
8
else
'nccl'
mode
=
mode
.
lower
()
mode
=
mode
.
lower
()
...
...
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