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
OpenDAS
MMCV
Commits
82a15dfc
"src/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "09887246bb60d3fe5c2032fb8884d6b32ecf5241"
Unverified
Commit
82a15dfc
authored
Jul 10, 2020
by
Cao Yuhang
Committed by
GitHub
Jul 10, 2020
Browse files
compitable dcn old api (#405)
parent
481fdbf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
mmcv/ops/deform_conv.py
mmcv/ops/deform_conv.py
+3
-0
mmcv/ops/modulated_deform_conv.py
mmcv/ops/modulated_deform_conv.py
+3
-0
mmcv/version.py
mmcv/version.py
+1
-1
No files found.
mmcv/ops/deform_conv.py
View file @
82a15dfc
...
@@ -7,6 +7,7 @@ from torch.autograd import Function
...
@@ -7,6 +7,7 @@ from torch.autograd import Function
from
torch.autograd.function
import
once_differentiable
from
torch.autograd.function
import
once_differentiable
from
torch.nn.modules.utils
import
_pair
,
_single
from
torch.nn.modules.utils
import
_pair
,
_single
from
mmcv.utils
import
deprecated_api_warning
from
..cnn
import
CONV_LAYERS
from
..cnn
import
CONV_LAYERS
from
..utils
import
ext_loader
,
print_log
from
..utils
import
ext_loader
,
print_log
...
@@ -171,6 +172,8 @@ deform_conv2d = DeformConv2dFunction.apply
...
@@ -171,6 +172,8 @@ deform_conv2d = DeformConv2dFunction.apply
class
DeformConv2d
(
nn
.
Module
):
class
DeformConv2d
(
nn
.
Module
):
@
deprecated_api_warning
({
'deformable_groups'
:
'deform_groups'
},
cls_name
=
'DeformConv2d'
)
def
__init__
(
self
,
def
__init__
(
self
,
in_channels
,
in_channels
,
out_channels
,
out_channels
,
...
...
mmcv/ops/modulated_deform_conv.py
View file @
82a15dfc
...
@@ -6,6 +6,7 @@ from torch.autograd import Function
...
@@ -6,6 +6,7 @@ from torch.autograd import Function
from
torch.autograd.function
import
once_differentiable
from
torch.autograd.function
import
once_differentiable
from
torch.nn.modules.utils
import
_pair
,
_single
from
torch.nn.modules.utils
import
_pair
,
_single
from
mmcv.utils
import
deprecated_api_warning
from
..cnn
import
CONV_LAYERS
from
..cnn
import
CONV_LAYERS
from
..utils
import
ext_loader
,
print_log
from
..utils
import
ext_loader
,
print_log
...
@@ -147,6 +148,8 @@ modulated_deform_conv2d = ModulatedDeformConv2dFunction.apply
...
@@ -147,6 +148,8 @@ modulated_deform_conv2d = ModulatedDeformConv2dFunction.apply
class
ModulatedDeformConv2d
(
nn
.
Module
):
class
ModulatedDeformConv2d
(
nn
.
Module
):
@
deprecated_api_warning
({
'deformable_groups'
:
'deform_groups'
},
cls_name
=
'ModulatedDeformConv2d'
)
def
__init__
(
self
,
def
__init__
(
self
,
in_channels
,
in_channels
,
out_channels
,
out_channels
,
...
...
mmcv/version.py
View file @
82a15dfc
# Copyright (c) Open-MMLab. All rights reserved.
# Copyright (c) Open-MMLab. All rights reserved.
__version__
=
'1.0.
1
'
__version__
=
'1.0.
2
'
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