-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to process pred result to submission format, recover the s…
…ort ops for pred bboxes when calculating grounding AP
- Loading branch information
Showing
3 changed files
with
124 additions
and
78 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 |
---|---|---|
|
@@ -136,3 +136,7 @@ demo/data | |
# logs and checkpoints | ||
work_dirs/ | ||
tools/*.sh | ||
|
||
# test submission results | ||
*.pkl | ||
*.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
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,39 @@ | ||
import mmengine | ||
|
||
# Please modify the following content to submit your results | ||
results_file = './test_results_mini.json' | ||
submit_file = './submission_mini.pkl' | ||
|
||
method = 'Baseline' | ||
team = 'EmbodiedScan' | ||
authors = 'EmbodiedScan Team' | ||
email = '[email protected]' | ||
institution = 'Shanghai AI Laboratory' | ||
country = 'China' | ||
|
||
# submission prototype: | ||
# dict { | ||
# 'method': <str> -- name of the method | ||
# 'team': <str> -- name of the team, identical to the Google Form | ||
# 'authors': <list> -- list of str, authors | ||
# 'e-mail': <str> -- e-mail address | ||
# 'institution / company': <str> -- institution or company | ||
# 'country / region': <str> -- country or region | ||
# 'results': { | ||
# [identifier]: <frame_token> -- identifier of the frame | ||
# dict or list, a single frame prediction | ||
# , | ||
# ... | ||
# } | ||
# } | ||
results = mmengine.load(results_file) | ||
submit_data = { | ||
'method': method, | ||
'team': team, | ||
'authors': authors, | ||
'e-mail': email, | ||
'institution': institution, | ||
'country': country, | ||
'results': results | ||
} | ||
mmengine.dump(submit_data, submit_file) |