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
7dc54821
You need to sign in or sign up before continuing.
Commit
7dc54821
authored
Nov 30, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix visualization (fix #530)
parent
6d5ba6a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
examples/FasterRCNN/config.py
examples/FasterRCNN/config.py
+1
-1
examples/FasterRCNN/train.py
examples/FasterRCNN/train.py
+3
-1
No files found.
examples/FasterRCNN/config.py
View file @
7dc54821
...
...
@@ -54,7 +54,7 @@ FASTRCNN_FG_RATIO = 0.25
# testing -----------------------
TEST_PRE_NMS_TOPK
=
6000
TEST_POST_NMS_TOPK
=
1000
TEST_POST_NMS_TOPK
=
1000
# if you encounter OOM in inference, set this to a smaller number
FASTRCNN_NMS_THRESH
=
0.5
RESULT_SCORE_THRESH
=
0.05
RESULTS_PER_IM
=
100
examples/FasterRCNN/train.py
View file @
7dc54821
...
...
@@ -262,7 +262,9 @@ def visualize(model_path, nr_visualize=50, output_dir='output'):
# draw the scores for the above proposals
score_viz
=
draw_predictions
(
img
,
rpn_boxes
[
good_proposals_ind
],
all_probs
[
good_proposals_ind
])
results
=
[
DetectionResult
(
*
args
)
for
args
in
zip
(
final_labels
,
final_boxes
,
final_probs
)]
results
=
[
DetectionResult
(
*
args
)
for
args
in
zip
(
final_boxes
,
final_probs
,
final_labels
,
[
None
]
*
len
(
final_labels
))]
final_viz
=
draw_final_outputs
(
img
,
results
)
viz
=
tpviz
.
stack_patches
([
...
...
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