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
ModelZoo
SOLOv2-pytorch
Commits
5686a375
Commit
5686a375
authored
Oct 07, 2018
by
Kai Chen
Browse files
some renaming
parent
c47c4480
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
14 deletions
+2
-14
mmdet/core/__init__.py
mmdet/core/__init__.py
+1
-1
mmdet/core/anchor/__init__.py
mmdet/core/anchor/__init__.py
+0
-0
mmdet/core/anchor/anchor_generator.py
mmdet/core/anchor/anchor_generator.py
+0
-0
mmdet/core/anchor/anchor_target.py
mmdet/core/anchor/anchor_target.py
+0
-0
mmdet/core/utils/__init__.py
mmdet/core/utils/__init__.py
+1
-2
mmdet/core/utils/hooks.py
mmdet/core/utils/hooks.py
+0
-11
No files found.
mmdet/core/__init__.py
View file @
5686a375
from
.
rpn_ops
import
*
# noqa: F401, F403
from
.
anchor
import
*
# noqa: F401, F403
from
.bbox_ops
import
*
# noqa: F401, F403
from
.mask_ops
import
*
# noqa: F401, F403
from
.losses
import
*
# noqa: F401, F403
...
...
mmdet/core/
rpn_ops
/__init__.py
→
mmdet/core/
anchor
/__init__.py
View file @
5686a375
File moved
mmdet/core/
rpn_ops
/anchor_generator.py
→
mmdet/core/
anchor
/anchor_generator.py
View file @
5686a375
File moved
mmdet/core/
rpn_ops
/anchor_target.py
→
mmdet/core/
anchor
/anchor_target.py
View file @
5686a375
File moved
mmdet/core/utils/__init__.py
View file @
5686a375
from
.dist_utils
import
(
init_dist
,
reduce_grads
,
DistOptimizerHook
,
DistSamplerSeedHook
)
from
.hooks
import
EmptyCacheHook
from
.misc
import
tensor2imgs
,
unmap
,
multi_apply
__all__
=
[
'init_dist'
,
'reduce_grads'
,
'DistOptimizerHook'
,
'DistSamplerSeedHook'
,
'EmptyCacheHook'
,
'tensor2imgs'
,
'unmap'
,
'multi_apply'
'tensor2imgs'
,
'unmap'
,
'multi_apply'
]
mmdet/core/utils/hooks.py
deleted
100644 → 0
View file @
c47c4480
import
torch
from
mmcv.runner
import
Hook
class
EmptyCacheHook
(
Hook
):
def
before_epoch
(
self
,
runner
):
torch
.
cuda
.
empty_cache
()
def
after_epoch
(
self
,
runner
):
torch
.
cuda
.
empty_cache
()
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