Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
a2cb67c2
Commit
a2cb67c2
authored
Jul 27, 2017
by
Derek Chow
Browse files
Disable mask prediction.
parent
e76ee699
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
object_detection/core/box_predictor.py
object_detection/core/box_predictor.py
+2
-0
object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py
...dels/faster_rcnn_inception_resnet_v2_feature_extractor.py
+1
-1
No files found.
object_detection/core/box_predictor.py
View file @
a2cb67c2
...
@@ -317,6 +317,8 @@ class MaskRCNNBoxPredictor(BoxPredictor):
...
@@ -317,6 +317,8 @@ class MaskRCNNBoxPredictor(BoxPredictor):
self
.
_predict_instance_masks
=
predict_instance_masks
self
.
_predict_instance_masks
=
predict_instance_masks
self
.
_mask_prediction_conv_depth
=
mask_prediction_conv_depth
self
.
_mask_prediction_conv_depth
=
mask_prediction_conv_depth
self
.
_predict_keypoints
=
predict_keypoints
self
.
_predict_keypoints
=
predict_keypoints
if
self
.
_predict_instance_masks
:
raise
ValueError
(
'Mask prediction is unimplemented.'
)
if
self
.
_predict_keypoints
:
if
self
.
_predict_keypoints
:
raise
ValueError
(
'Keypoint prediction is unimplemented.'
)
raise
ValueError
(
'Keypoint prediction is unimplemented.'
)
if
((
self
.
_predict_instance_masks
or
self
.
_predict_keypoints
)
and
if
((
self
.
_predict_instance_masks
or
self
.
_predict_keypoints
)
and
...
...
object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py
View file @
a2cb67c2
...
@@ -175,7 +175,7 @@ class FasterRCNNInceptionResnetV2FeatureExtractor(
...
@@ -175,7 +175,7 @@ class FasterRCNNInceptionResnetV2FeatureExtractor(
faster_rcnn_meta_arch.FasterRCNNFeatureExtractor which does not work for
faster_rcnn_meta_arch.FasterRCNNFeatureExtractor which does not work for
InceptionResnetV2 checkpoints.
InceptionResnetV2 checkpoints.
TODO
(jonathanhuang,rathodv)
: revisit whether it's possible to force the
TODO: revisit whether it's possible to force the
`Repeat` namescope as created in `_extract_box_classifier_features` to
`Repeat` namescope as created in `_extract_box_classifier_features` to
start counting at 2 (e.g. `Repeat_2`) so that the default restore_fn can
start counting at 2 (e.g. `Repeat_2`) so that the default restore_fn can
be used.
be used.
...
...
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