We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def not_exist(pred): return len(pred) == 1 and pred == 0
def eval(out_res, label_res): measure_per_frame = [] for _pred, _gt, _exist in zip(out_res, label_res['gt_rect'], label_res['exist']): measure_per_frame.append(not_exist(_pred) if not _exist else iou(_pred, _gt)) return np.mean(measure_per_frame)
The text was updated successfully, but these errors were encountered:
I suggest output [0,0,0,0] and def not_exist(pred): return len(pred) == 4 and pred == [0,0,0,0]
Sorry, something went wrong.
I got the same problem。。。 @ZhaoJ9014 @xjtuwh
https://github.com/Anti-UAV/baseline/blob/master/test.py
No branches or pull requests
def not_exist(pred):
return len(pred) == 1 and pred == 0
def eval(out_res, label_res):
measure_per_frame = []
for _pred, _gt, _exist in zip(out_res, label_res['gt_rect'], label_res['exist']):
measure_per_frame.append(not_exist(_pred) if not _exist else iou(_pred, _gt))
return np.mean(measure_per_frame)
The text was updated successfully, but these errors were encountered: