-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update detection visualization tutorial (#768)
* init vis folder Signed-off-by: dongy <dongy@nvidia.com> * update repo Signed-off-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> * update repo Signed-off-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> * update repo Signed-off-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> * update repo Signed-off-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update repo Signed-off-by: dongy <dongy@nvidia.com> * update repo Signed-off-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update repo Signed-off-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> * update repo Signed-off-by: dongy <dongy@nvidia.com> Co-authored-by: dongy <dongy@nvidia.com> Co-authored-by: Dong Yang <dongy@dongy-mlt.client.nvidia.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2da31b6
commit 9b54616
Showing
4 changed files
with
139 additions
and
16 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
45 changes: 45 additions & 0 deletions
45
detection/luna16_visualization/data_sample_xyzxyz_image-coordinate.json
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,45 @@ | ||
{ | ||
"validation": [ | ||
{ | ||
"image": "1.3.6.1.4.1.14519.5.2.1.6279.6001.108197895896446896160048741492.mhd", | ||
"box": [ | ||
[ | ||
106, | ||
342.25, | ||
31.453125, | ||
114.75, | ||
351, | ||
34.0625 | ||
] | ||
], | ||
"label": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"image": "1.3.6.1.4.1.14519.5.2.1.6279.6001.109002525524522225658609808059.mhd", | ||
"box": [ | ||
[ | ||
413.75, | ||
273.25, | ||
62.90625, | ||
438.5, | ||
298, | ||
73.8125 | ||
], | ||
[ | ||
404.5, | ||
333.25, | ||
54.8125, | ||
412.25, | ||
341.25, | ||
58.3125 | ||
] | ||
], | ||
"label": [ | ||
0, | ||
0 | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,7 +1,17 @@ | ||
#!/bin/bash | ||
|
||
INPUT_DATASET_JSON="./data_sample.json" | ||
OUTPUT_DIR="./out" | ||
OUTPUT_DIR="./out_world_coord" | ||
|
||
python save_obj.py --input_dataset_json ${INPUT_DATASET_JSON} \ | ||
python save_obj.py --input_box_mode "cccwhd" \ | ||
--input_dataset_json ${INPUT_DATASET_JSON} \ | ||
--output_dir ${OUTPUT_DIR} | ||
|
||
IMAGE_DATA_ROOT="/data_root" | ||
INPUT_DATASET_JSON="./data_sample_xyzxyz_image-coordinate.json" | ||
OUTPUT_DIR="./out_image_coord" | ||
|
||
python save_obj.py --image_coordinate \ | ||
--image_data_root ${IMAGE_DATA_ROOT} \ | ||
--input_box_mode "xyzxyz" \ | ||
--input_dataset_json ${INPUT_DATASET_JSON} \ |