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
724abbca
Commit
724abbca
authored
Oct 12, 2018
by
Kai Chen
Browse files
remove useless method
parent
c76a95ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
mmdet/api/train.py
mmdet/api/train.py
+0
-9
No files found.
mmdet/api/train.py
View file @
724abbca
from
__future__
import
division
from
__future__
import
division
import
random
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
numpy
as
np
import
torch
import
torch
from
mmcv.runner
import
Runner
,
DistSamplerSeedHook
from
mmcv.runner
import
Runner
,
DistSamplerSeedHook
from
mmcv.parallel
import
MMDataParallel
,
MMDistributedDataParallel
from
mmcv.parallel
import
MMDataParallel
,
MMDistributedDataParallel
...
@@ -45,13 +43,6 @@ def batch_processor(model, data, train_mode):
...
@@ -45,13 +43,6 @@ def batch_processor(model, data, train_mode):
return
outputs
return
outputs
def
set_random_seed
(
seed
):
random
.
seed
(
seed
)
np
.
random
.
seed
(
seed
)
torch
.
manual_seed
(
seed
)
torch
.
cuda
.
manual_seed_all
(
seed
)
def
train_detector
(
model
,
def
train_detector
(
model
,
dataset
,
dataset
,
cfg
,
cfg
,
...
...
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