Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
food-round2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joel Joseph
food-round2
Commits
5305a459
Unverified
Commit
5305a459
authored
6 years ago
by
Kai Chen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #323 from hellock/master
Minor fix for dcn check in the backbone
parents
3b43f490
716457e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mmdet/models/backbones/resnet.py
+3
-2
3 additions, 2 deletions
mmdet/models/backbones/resnet.py
with
3 additions
and
2 deletions
mmdet/models/backbones/resnet.py
+
3
−
2
View file @
5305a459
...
@@ -331,8 +331,7 @@ class ResNet(nn.Module):
...
@@ -331,8 +331,7 @@ class ResNet(nn.Module):
assert
num_stages
>=
1
and
num_stages
<=
4
assert
num_stages
>=
1
and
num_stages
<=
4
self
.
strides
=
strides
self
.
strides
=
strides
self
.
dilations
=
dilations
self
.
dilations
=
dilations
assert
len
(
strides
)
==
len
(
dilations
)
==
len
(
assert
len
(
strides
)
==
len
(
dilations
)
==
num_stages
stage_with_dcn
)
==
num_stages
self
.
out_indices
=
out_indices
self
.
out_indices
=
out_indices
assert
max
(
out_indices
)
<
num_stages
assert
max
(
out_indices
)
<
num_stages
self
.
style
=
style
self
.
style
=
style
...
@@ -342,6 +341,8 @@ class ResNet(nn.Module):
...
@@ -342,6 +341,8 @@ class ResNet(nn.Module):
self
.
norm_eval
=
norm_eval
self
.
norm_eval
=
norm_eval
self
.
dcn
=
dcn
self
.
dcn
=
dcn
self
.
stage_with_dcn
=
stage_with_dcn
self
.
stage_with_dcn
=
stage_with_dcn
if
dcn
is
not
None
:
assert
len
(
stage_with_dcn
)
==
num_stages
self
.
zero_init_residual
=
zero_init_residual
self
.
zero_init_residual
=
zero_init_residual
self
.
block
,
stage_blocks
=
self
.
arch_settings
[
depth
]
self
.
block
,
stage_blocks
=
self
.
arch_settings
[
depth
]
self
.
stage_blocks
=
stage_blocks
[:
num_stages
]
self
.
stage_blocks
=
stage_blocks
[:
num_stages
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment