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
nikhil_rayaprolu
food-round2
Commits
0af63520
Commit
0af63520
authored
6 years ago
by
Kai Chen
Browse files
Options
Downloads
Patches
Plain Diff
import FastRCNN to higher level, update hooks
parent
0e747be8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mmdet/core/evaluation/eval_hooks.py
+4
-0
4 additions, 0 deletions
mmdet/core/evaluation/eval_hooks.py
mmdet/models/__init__.py
+6
-4
6 additions, 4 deletions
mmdet/models/__init__.py
mmdet/models/detectors/__init__.py
+5
-1
5 additions, 1 deletion
mmdet/models/detectors/__init__.py
with
15 additions
and
5 deletions
mmdet/core/evaluation/eval_hooks.py
+
4
−
0
View file @
0af63520
...
...
@@ -55,6 +55,10 @@ class DistEvalHook(Hook):
shutil
.
rmtree
(
self
.
lock_dir
)
mmcv
.
mkdir_or_exist
(
self
.
lock_dir
)
def
after_run
(
self
,
runner
):
if
runner
.
rank
==
0
:
shutil
.
rmtree
(
self
.
lock_dir
)
def
after_train_epoch
(
self
,
runner
):
if
not
self
.
every_n_epochs
(
runner
,
self
.
interval
):
return
...
...
This diff is collapsed.
Click to expand it.
mmdet/models/__init__.py
+
6
−
4
View file @
0af63520
from
.detectors
import
BaseDetector
,
RPN
,
FasterRCNN
,
MaskRCNN
from
.detectors
import
(
BaseDetector
,
TwoStageDetector
,
RPN
,
FastRCNN
,
FasterRCNN
,
MaskRCNN
)
from
.builder
import
(
build_neck
,
build_rpn_head
,
build_roi_extractor
,
build_bbox_head
,
build_mask_head
,
build_detector
)
__all__
=
[
'
BaseDetector
'
,
'
RPN
'
,
'
FasterRCNN
'
,
'
MaskRCNN
'
,
'
build_backbone
'
,
'
build_neck
'
,
'
build_rpn_head
'
,
'
build_roi_extractor
'
,
'
build_bbox_head
'
,
'
build_mask_head
'
,
'
build_detector
'
'
BaseDetector
'
,
'
TwoStageDetector
'
,
'
RPN
'
,
'
FastRCNN
'
,
'
FasterRCNN
'
,
'
MaskRCNN
'
,
'
build_backbone
'
,
'
build_neck
'
,
'
build_rpn_head
'
,
'
build_roi_extractor
'
,
'
build_bbox_head
'
,
'
build_mask_head
'
,
'
build_detector
'
]
This diff is collapsed.
Click to expand it.
mmdet/models/detectors/__init__.py
+
5
−
1
View file @
0af63520
from
.base
import
BaseDetector
from
.two_stage
import
TwoStageDetector
from
.rpn
import
RPN
from
.fast_rcnn
import
FastRCNN
from
.faster_rcnn
import
FasterRCNN
from
.mask_rcnn
import
MaskRCNN
__all__
=
[
'
BaseDetector
'
,
'
RPN
'
,
'
FastRCNN
'
,
'
FasterRCNN
'
,
'
MaskRCNN
'
]
__all__
=
[
'
BaseDetector
'
,
'
TwoStageDetector
'
,
'
RPN
'
,
'
FastRCNN
'
,
'
FasterRCNN
'
,
'
MaskRCNN
'
]
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