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
d079b37c
Commit
d079b37c
authored
Jul 01, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #806
parent
08b0dfb6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
examples/FasterRCNN/model_frcnn.py
examples/FasterRCNN/model_frcnn.py
+1
-0
examples/FasterRCNN/model_rpn.py
examples/FasterRCNN/model_rpn.py
+1
-2
tensorpack/dataflow/dataset/bsds500.py
tensorpack/dataflow/dataset/bsds500.py
+1
-0
No files found.
examples/FasterRCNN/model_frcnn.py
View file @
d079b37c
...
...
@@ -156,6 +156,7 @@ def fastrcnn_Xconv1fc_head(feature, num_classes, num_convs):
def
fastrcnn_4conv1fc_head
(
*
args
,
**
kwargs
):
# This head was used in Group Normalization
return
fastrcnn_Xconv1fc_head
(
*
args
,
num_convs
=
4
,
**
kwargs
)
...
...
examples/FasterRCNN/model_rpn.py
View file @
d079b37c
...
...
@@ -143,8 +143,7 @@ def generate_rpn_proposals(boxes, scores, img_shape,
(
-
1
,
4
),
name
=
'nms_input_boxes'
)
nms_indices
=
tf
.
image
.
non_max_suppression
(
topk_valid_boxes_y1x1y2x2
,
# TODO use exp to work around a bug in TF1.9: https://github.com/tensorflow/tensorflow/issues/19578
tf
.
exp
(
topk_valid_scores
),
topk_valid_scores
,
max_output_size
=
post_nms_topk
,
iou_threshold
=
cfg
.
RPN
.
PROPOSAL_NMS_THRESH
)
...
...
tensorpack/dataflow/dataset/bsds500.py
View file @
d079b37c
...
...
@@ -95,6 +95,7 @@ except ImportError:
if
__name__
==
'__main__'
:
a
=
BSDS500
(
'val'
)
a
.
reset_state
()
for
k
in
a
.
get_data
():
cv2
.
imshow
(
"haha"
,
k
[
1
]
.
astype
(
'uint8'
)
*
255
)
cv2
.
waitKey
(
1000
)
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