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
RODNet
Commits
d98a5c44
Commit
d98a5c44
authored
Jan 05, 2021
by
Yizhou Wang
Browse files
update test.py for ROD2021
parent
80ded822
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
tools/test.py
tools/test.py
+4
-7
No files found.
tools/test.py
View file @
d98a5c44
...
...
@@ -6,7 +6,7 @@ import numpy as np
import
torch
from
torch.utils.data
import
DataLoader
from
cruw
.cruw
import
CRUW
from
cruw
import
CRUW
from
rodnet.datasets.CRDataset
import
CRDataset
from
rodnet.datasets.collate_functions
import
cr_collate
...
...
@@ -43,13 +43,10 @@ if __name__ == "__main__":
sybl
=
args
.
symbol
config_dict
=
load_configs_from_file
(
args
.
config
)
dataset
=
CRUW
(
data_root
=
config_dict
[
'dataset_cfg'
][
'base_root'
])
dataset
=
CRUW
(
data_root
=
config_dict
[
'dataset_cfg'
][
'base_root'
]
,
sensor_config_name
=
'sensor_config_rod2021'
)
radar_configs
=
dataset
.
sensor_cfg
.
radar_cfg
range_grid
=
dataset
.
range_grid
angle_grid
=
dataset
.
angle_grid
# config_dict['mappings'] = {}
# config_dict['mappings']['range_grid'] = range_grid.tolist()
# config_dict['mappings']['angle_grid'] = angle_grid.tolist()
model_configs
=
config_dict
[
'model_cfg'
]
...
...
@@ -125,9 +122,9 @@ if __name__ == "__main__":
data_root
=
dataset_configs
[
'data_root'
]
if
not
args
.
demo
:
seq_names
=
dataset_configs
[
'test'
][
's
eqs'
]
seq_names
=
sorted
(
os
.
listdir
(
os
.
path
.
join
(
data_root
,
dataset_configs
[
'test'
][
's
ubdir'
])))
else
:
seq_names
=
dataset_configs
[
'demo'
][
's
eqs'
]
seq_names
=
sorted
(
os
.
listdir
(
os
.
path
.
join
(
data_root
,
dataset_configs
[
'demo'
][
's
ubdir'
])))
print
(
seq_names
)
for
seq_name
in
seq_names
:
...
...
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