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

What shoud pred be so that len(pred) == 1 and pred == 0? (目标不存在时输出什么才对?) #3

Open
xjtuwh opened this issue Mar 7, 2020 · 3 comments

Comments

@xjtuwh
Copy link

xjtuwh commented Mar 7, 2020

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)

@xjtuwh
Copy link
Author

xjtuwh commented Mar 7, 2020

I suggest output [0,0,0,0] and
def not_exist(pred):
return len(pred) == 4 and pred == [0,0,0,0]

@zhaowujie
Copy link

I got the same problem。。。 @ZhaoJ9014 @xjtuwh

@xjtuwh
Copy link
Author

xjtuwh commented Mar 31, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants