Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
dccf8e07
Commit
dccf8e07
authored
Feb 05, 2019
by
Akiomi KAMAKURA
Committed by
Francisco Massa
Feb 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `NameError: name 'cfg' is not defined` in roi_box_predictors.py (#407)
parent
9cb251d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
roi_box_predictors.py
...nchmark/modeling/roi_heads/box_head/roi_box_predictors.py
+1
-1
No files found.
maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_predictors.py
View file @
dccf8e07
...
...
@@ -14,7 +14,7 @@ class FastRCNNPredictor(nn.Module):
num_classes
=
config
.
MODEL
.
ROI_BOX_HEAD
.
NUM_CLASSES
self
.
avgpool
=
nn
.
AvgPool2d
(
kernel_size
=
7
,
stride
=
7
)
self
.
cls_score
=
nn
.
Linear
(
num_inputs
,
num_classes
)
num_bbox_reg_classes
=
2
if
c
f
g
.
MODEL
.
CLS_AGNOSTIC_BBOX_REG
else
num_classes
num_bbox_reg_classes
=
2
if
c
onfi
g
.
MODEL
.
CLS_AGNOSTIC_BBOX_REG
else
num_classes
self
.
bbox_pred
=
nn
.
Linear
(
num_inputs
,
num_bbox_reg_classes
*
4
)
nn
.
init
.
normal_
(
self
.
cls_score
.
weight
,
mean
=
0
,
std
=
0.01
)
...
...
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