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

get frame mAP error #34

Open
ZWXCV opened this issue Nov 6, 2023 · 3 comments
Open

get frame mAP error #34

ZWXCV opened this issue Nov 6, 2023 · 3 comments

Comments

@ZWXCV
Copy link

ZWXCV commented Nov 6, 2023

Thanks for the author's reply, I can indeed get videomAP through the instruction. I want to get the frame mAP and I see that the parameter "frameAP " exists in compute_video_map.py, so I execute the instruction "python compute_video_map.py frameAP JHMDB-GT.pkl result_jhmdb.pkl". But I get a syntax error. The following is the error message:
Traceback (most recent call last):
File "compute_video_map.py", line 427, in
frameAP(args.groundtruth, args.detections, args.thr)
File "compute_video_map.py", line 86, in frameAP
detections = alldets[alldets[:, 2] == ilabel, :]
TypeError: unhashable type: 'slice'
According to the error message TypeError: unhashable type: 'slice', the slicing operation cannot be applied to NumPy arrays.
This makes me very confused, I hope the author can give an answer,thank you very much.

@joslefaure
Copy link
Owner

Please follow these instructions for frameAP calculations

@joslefaure
Copy link
Owner

python evaluation_ucf24_jhmdb/pascalvoc.py --gtfolder groundtruths_jhmdb --detfolder PATH-TO-DETECTIONS-FOLDER

@ZWXCV
Copy link
Author

ZWXCV commented Nov 9, 2023

Thank you for the author's reply, but why is the value of video mAP that I received significantly different from the value given in your paper, about 5%? I hope the author can provide some suggestions. Thank you very much

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