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
mmdetection3d
Commits
3d97d8ff
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c222570a9b47901266fecf34222f540870c3bb1b"
Commit
3d97d8ff
authored
Jul 09, 2020
by
liyinhao
Committed by
zhangwenwei
Jul 09, 2020
Browse files
api_test_docstring and fix benchmark.md
parent
e79aced7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
docs/benchmarks.md
docs/benchmarks.md
+3
-3
mmdet3d/apis/test.py
mmdet3d/apis/test.py
+17
-0
No files found.
docs/benchmarks.md
View file @
3d97d8ff
...
...
@@ -183,7 +183,7 @@ We compare the training speed (samples/s) with other codebases if they implement
```
bash
cd
tools
sh scripts/slurm_train.sh
${
PARTITION
}
${
JOB_NAME
}
8
--cfg_file
./cfgs/pointpillar.yaml
--batch_size
32
--workers
32
sh scripts/slurm_train.sh
${
PARTITION
}
${
JOB_NAME
}
8
--cfg_file
./cfgs/
kitti_models/
pointpillar.yaml
--batch_size
32
--workers
32
--epochs
80
```
### SECOND
...
...
@@ -198,7 +198,7 @@ We compare the training speed (samples/s) with other codebases if they implement
```
bash
cd
tools
./scripts/slurm_train.sh
${
PARTITION
}
${
JOB_NAME
}
8
--cfg_file
./cfgs/second.yaml
--batch_size
32
--workers
32
sh
./scripts/slurm_train.sh
${
PARTITION
}
${
JOB_NAME
}
8
--cfg_file
./cfgs/
kitti_models/
second.yaml
--batch_size
32
--workers
32
--epochs
80
```
### Part-A2
...
...
@@ -213,5 +213,5 @@ We compare the training speed (samples/s) with other codebases if they implement
```
bash
cd
tools
./scripts/slurm_train.sh
${
PARTITION
}
${
JOB_NAME
}
8
--cfg_file
./cfgs/PartA2.yaml
--batch_size
32
--workers
32
sh
./scripts/slurm_train.sh
${
PARTITION
}
${
JOB_NAME
}
8
--cfg_file
./cfgs/
kitti_models/
PartA2.yaml
--batch_size
32
--workers
32
--epochs
80
```
mmdet3d/apis/test.py
View file @
3d97d8ff
...
...
@@ -3,6 +3,23 @@ import torch
def
single_gpu_test
(
model
,
data_loader
,
show
=
False
,
out_dir
=
None
):
"""Test model with single gpu.
This method tests model with single gpu and gives the 'show' option.
By setting ``show=True``, it saves the visualization results under
``out_dir``.
Args:
model (nn.Module): Model to be tested.
data_loader (nn.Dataloader): Pytorch data loader.
show (bool): Whether to save viualization results.
Default: True.
out_dir (str): The path to save visualization results.
Default: None.
Returns:
list[dict]: The prediction results.
"""
model
.
eval
()
results
=
[]
dataset
=
data_loader
.
dataset
...
...
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