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
14964cc7
Commit
14964cc7
authored
Nov 10, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump to 0.9.0.1
parent
51db9d83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
examples/FasterRCNN/model_frcnn.py
examples/FasterRCNN/model_frcnn.py
+4
-1
examples/FasterRCNN/train.py
examples/FasterRCNN/train.py
+0
-3
tensorpack/libinfo.py
tensorpack/libinfo.py
+1
-1
No files found.
examples/FasterRCNN/model_frcnn.py
View file @
14964cc7
...
@@ -5,6 +5,7 @@ import tensorflow as tf
...
@@ -5,6 +5,7 @@ import tensorflow as tf
from
tensorpack.tfutils.summary
import
add_moving_summary
from
tensorpack.tfutils.summary
import
add_moving_summary
from
tensorpack.tfutils.argscope
import
argscope
from
tensorpack.tfutils.argscope
import
argscope
from
tensorpack.tfutils.common
import
get_tf_version_tuple
from
tensorpack.tfutils.scope_utils
import
under_name_scope
from
tensorpack.tfutils.scope_utils
import
under_name_scope
from
tensorpack.models
import
(
from
tensorpack.models
import
(
Conv2D
,
FullyConnected
,
layer_register
)
Conv2D
,
FullyConnected
,
layer_register
)
...
@@ -220,8 +221,10 @@ def fastrcnn_predictions(boxes, scores):
...
@@ -220,8 +221,10 @@ def fastrcnn_predictions(boxes, scores):
default_value
=
False
)
default_value
=
False
)
return
mask
return
mask
# TF bug in version 1.11, 1.12: https://github.com/tensorflow/tensorflow/issues/22750
parallel
=
1
if
(
get_tf_version_tuple
()
in
[(
1
,
11
),
(
1
,
12
)])
else
10
masks
=
tf
.
map_fn
(
f
,
(
scores
,
boxes
),
dtype
=
tf
.
bool
,
masks
=
tf
.
map_fn
(
f
,
(
scores
,
boxes
),
dtype
=
tf
.
bool
,
parallel_iterations
=
10
)
# #cat x N
parallel_iterations
=
parallel
)
# #cat x N
selected_indices
=
tf
.
where
(
masks
)
# #selection x 2, each is (cat_id, box_id)
selected_indices
=
tf
.
where
(
masks
)
# #selection x 2, each is (cat_id, box_id)
scores
=
tf
.
boolean_mask
(
scores
,
masks
)
scores
=
tf
.
boolean_mask
(
scores
,
masks
)
...
...
examples/FasterRCNN/train.py
View file @
14964cc7
...
@@ -496,9 +496,6 @@ if __name__ == '__main__':
...
@@ -496,9 +496,6 @@ if __name__ == '__main__':
if
get_tf_version_tuple
()
<
(
1
,
6
):
if
get_tf_version_tuple
()
<
(
1
,
6
):
# https://github.com/tensorflow/tensorflow/issues/14657
# https://github.com/tensorflow/tensorflow/issues/14657
logger
.
warn
(
"TF<1.6 has a bug which may lead to crash in FasterRCNN if you're unlucky."
)
logger
.
warn
(
"TF<1.6 has a bug which may lead to crash in FasterRCNN if you're unlucky."
)
if
get_tf_version_tuple
()
==
(
1
,
11
):
# https://github.com/tensorflow/tensorflow/issues/22750
logger
.
warn
(
"TF=1.11 has a bug which leads to crash in inference."
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
config
:
if
args
.
config
:
...
...
tensorpack/libinfo.py
View file @
14964cc7
...
@@ -54,4 +54,4 @@ except ImportError:
...
@@ -54,4 +54,4 @@ except ImportError:
# This line has to be the last line of the file.
# This line has to be the last line of the file.
# setup.py will use it to determine the version
# setup.py will use it to determine the version
__version__
=
'0.9.0'
__version__
=
'0.9.0
.1
'
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