Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
orienternet-api
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ifs
IPA
Webapp-Frontend OrienterNet
orienternet-api
Commits
213aff45
Commit
213aff45
authored
1 year ago
by
Paul-Edouard Sarlin
Browse files
Options
Downloads
Patches
Plain Diff
Fix in KITTI sequential
parent
8c81aa4b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+15
-6
15 additions, 6 deletions
README.md
maploc/data/sequential.py
+3
-1
3 additions, 1 deletion
maploc/data/sequential.py
maploc/evaluation/run.py
+1
-1
1 addition, 1 deletion
maploc/evaluation/run.py
with
19 additions
and
8 deletions
README.md
+
15
−
6
View file @
213aff45
...
@@ -113,16 +113,16 @@ python -m maploc.evaluation.mapillary [...] --output_dir ./viz_MGL/ --num 100
...
@@ -113,16 +113,16 @@ python -m maploc.evaluation.mapillary [...] --output_dir ./viz_MGL/ --num 100
To run the evaluation in sequential mode:
To run the evaluation in sequential mode:
```
bash
```
bash
python
-m
maploc.evaluation.mapillary
--experiment
OrienterNet_MGL
--sequential
python
-m
maploc.evaluation.mapillary
--experiment
OrienterNet_MGL
--sequential
model.num_rotations
=
256
```
```
The results should be close to the following:
The results should be close to the following:
```
```
Recall xy_seq_error: [29.73, 73.25, 91.17] at (1, 3, 5) m/°
Recall xy_seq_error: [29.73, 73.25, 91.17] at (1, 3, 5) m/°
Recall yaw_seq_error: [46.55, 88.3, 96.45] at (1, 3, 5) m/°
Recall yaw_seq_error: [46.55, 88.3, 96.45] at (1, 3, 5) m/°
```
```
The sequential evaluation uses 10 frames by default. To increase this number:
The sequential evaluation uses 10 frames by default. To increase this number
, add
:
```
bash
```
bash
python
-m
maploc.evaluation.mapillary
[
...]
--sequential
chunking.max_length
=
20
python
-m
maploc.evaluation.mapillary
[
...] chunking.max_length
=
20
```
```
...
@@ -142,7 +142,7 @@ python -m maploc.data.kitti.prepare
...
@@ -142,7 +142,7 @@ python -m maploc.data.kitti.prepare
2.
Run the evaluation with the model trained on MGL:
2.
Run the evaluation with the model trained on MGL:
```
bash
```
bash
python
-m
maploc.evaluation.kitti
--experiment
OrienterNet_MGL
python
-m
maploc.evaluation.kitti
--experiment
OrienterNet_MGL
model.num_rotations
=
256
```
```
You should expect the following results:
You should expect the following results:
...
@@ -155,9 +155,18 @@ Recall yaw_max_error: [29.22, 68.2, 84.49] at (1, 3, 5) m/°
...
@@ -155,9 +155,18 @@ Recall yaw_max_error: [29.22, 68.2, 84.49] at (1, 3, 5) m/°
You can similarly export some visual examples:
You can similarly export some visual examples:
```
bash
```
bash
python
-m
maploc.evaluation.kitti
[
...]
--output_dir
./viz_KITTI/
--num
100
python
-m
maploc.evaluation.kitti
[
...]
--output_dir
./viz_KITTI/
--num
100
```
To run in sequential mode:
```
bash
python
-m
maploc.evaluation.kitti
--experiment
OrienterNet_MGL
--sequential
model.num_rotations
=
256
```
with results:
```
Recall directional_seq_error: [[81.94, 97.35, 98.67], [52.57, 95.6, 97.35]] at (1, 3, 5) m/°
Recall yaw_seq_error: [82.7, 98.63, 99.06] at (1, 3, 5) m/°
```
```
To run in sequential mode, similarly add the
`--sequential`
flag.
</details>
</details>
...
...
This diff is collapsed.
Click to expand it.
maploc/data/sequential.py
+
3
−
1
View file @
213aff45
...
@@ -15,7 +15,9 @@ def chunk_sequence(
...
@@ -15,7 +15,9 @@ def chunk_sequence(
max_inter_dist
=
None
,
max_inter_dist
=
None
,
max_total_dist
=
None
,
max_total_dist
=
None
,
):
):
sort_array
=
data
.
get
(
"
capture_time
"
,
data
.
get
(
"
index
"
,
names
or
indices
))
sort_array
=
data
.
get
(
"
capture_time
"
,
data
.
get
(
"
index
"
))
if
sort_array
is
None
:
sort_array
=
indices
if
names
is
None
else
names
indices
=
sorted
(
indices
,
key
=
lambda
i
:
sort_array
[
i
].
tolist
())
indices
=
sorted
(
indices
,
key
=
lambda
i
:
sort_array
[
i
].
tolist
())
centers
=
torch
.
stack
([
data
[
"
t_c2w
"
][
i
][:
2
]
for
i
in
indices
]).
numpy
()
centers
=
torch
.
stack
([
data
[
"
t_c2w
"
][
i
][:
2
]
for
i
in
indices
]).
numpy
()
dists
=
np
.
linalg
.
norm
(
np
.
diff
(
centers
,
axis
=
0
),
axis
=-
1
)
dists
=
np
.
linalg
.
norm
(
np
.
diff
(
centers
,
axis
=
0
),
axis
=-
1
)
...
...
This diff is collapsed.
Click to expand it.
maploc/evaluation/run.py
+
1
−
1
View file @
213aff45
...
@@ -109,7 +109,7 @@ def evaluate_sequential(
...
@@ -109,7 +109,7 @@ def evaluate_sequential(
progress
:
bool
=
True
,
progress
:
bool
=
True
,
num_rotations
:
int
=
512
,
num_rotations
:
int
=
512
,
mask_index
:
Optional
[
Tuple
[
int
]]
=
None
,
mask_index
:
Optional
[
Tuple
[
int
]]
=
None
,
has_gps
:
bool
=
Tru
e
,
has_gps
:
bool
=
Fals
e
,
):
):
chunk_keys
=
list
(
chunk2idx
)
chunk_keys
=
list
(
chunk2idx
)
if
shuffle
:
if
shuffle
:
...
...
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