Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix map bugs #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def coco_eval_with_json(anno_json, pred_json):
print('map --> ', map)
print('map50--> ', map50)
print('map75--> ', eval.stats[2])
print('map85--> ', eval.stats[-2])
print('map95--> ', eval.stats[-1])
# print('map85--> ', eval.stats[-2])
# print('map95--> ', eval.stats[-1])

class COCO_test_helper():
def __init__(self, enable_letter_box = False) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ def img_check(path):
if args.model not in SUPPORT_MODEL:
print('ERROR: {} model type is not support.'.format(args.model))
exit()
if args.coco_map_test:
print(' \n Warning!!!!!!!!!!!!!!!!!Test coco,be careful that OBJ_THRESH would be set to 0.001 ,img_show and img_save would be disabled \n')
OBJ_THRESH = 0.001
args.img_show = False
args.img_save = False

# seting defualt hyperparam
if args.model == 'yolox':
Expand Down