forked from NVlabs/Deep_Object_Pose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Tremblay
committed
Jul 13, 2022
1 parent
246c27f
commit b9553c0
Showing
10 changed files
with
125 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
mkdir data | ||
|
||
cd data | ||
|
||
wget https://www.dropbox.com/s/qeljw3vjnc416bs/table_003_cracker_box_dope_results.zip | ||
wget https://www.dropbox.com/s/mn2yqflc6fcqaic/table_003_cracker_box.zip | ||
|
||
unzip table_003_cracker_box_dope_results.zip | ||
rm table_003_cracker_box_dope_results.zip | ||
mkdir table_dope_results/ | ||
mv table_003_cracker_box table_dope_results/scene1/ | ||
|
||
unzip table_003_cracker_box.zip | ||
rm table_003_cracker_box.zip | ||
mkdir table_ground_truth/ | ||
mv table_003_cracker_box table_ground_truth/scene1/ | ||
|
||
cd ../ | ||
|
||
mkdir content | ||
cd content | ||
|
||
wget https://www.dropbox.com/s/b61es9q5nhwtooi/003_cracker_box.zip | ||
unzip 003_cracker_box.zip | ||
rm 003_cracker_box.zip | ||
mv 003_cracker_box 003_cracker_box_16k | ||
|
||
cd ../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ADD metrics computation and figure | ||
|
||
## Requirements | ||
|
||
Run the download content file: `./download_content.sh`, this downloads a simple scene with annotation rendered by NViSII and with DOPE predictions. | ||
|
||
## How to run | ||
|
||
If you downloaded the previous content you can execute the following: | ||
|
||
``` | ||
python add_compute.py | ||
``` | ||
and you should get the following displayed: | ||
``` | ||
mean 0.0208515107260977 std 0.016006083915162977 ratio 17/22 | ||
auc at 0.02 : 0.5 | ||
auc at 0.04 : 0.6818181818181818 | ||
auc at 0.06 : 0.7272727272727273 | ||
auc 0.6115249999999999 | ||
``` | ||
This means the area under the curve, *auc* from 0 cm to 10 cm is 0.61. This script also produces graphs such as: | ||
|
||
 | ||
|
||
These are the metrics we reported in the original DOPE paper. I will refer to the paper for explaining the graph. | ||
|
||
## Assumptions | ||
We make a few assumptions in this script. | ||
1. We assume the folders structures are the same and there are only scenes in the folder. See `data/` folder example from downloading the content. | ||
2. We assume the notation folder is in the opengl format and that it is using the nvisii outputs from the data generation pipeline. If you use a diffirent file format please update the script or your data. | ||
3. We assume the inferences are from DOPE inference, _e.g._, the poses are in the opengl format. These conventions are easy to change, _e.g._, look for the line `visii_gu.get_transform().rotate_around` in `add_compute.py` to change the pose convention. | ||
|
||
If the script takes to long to run, please run with `--cuboid`, instead of using the 3d models vertices to compare the metric, it uses the 3d cuboid of the 3d model to compute the metric. | ||
|
||
# TODO | ||
- Make a `requirement.txt` file. | ||
- Possibly subsamble vertices so computation is faster |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters