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

KeyError: '0_Parade_marchingband_1_465' #12

Open
xauat-liushipeng opened this issue Dec 17, 2020 · 9 comments
Open

KeyError: '0_Parade_marchingband_1_465' #12

xauat-liushipeng opened this issue Dec 17, 2020 · 9 comments

Comments

@xauat-liushipeng
Copy link

why do it have this error? I have run python setup.py build_ext --inplace
and python3 evaluation.py -p results/ -g ground_truth/

details:
Reading Predictions : 100%|█████████████████████| 61/61 [00:00<00:00, 93.52it/s]
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]Traceback (most recent call last):
File "evaluation.py", line 280, in
evaluation(args.pred, args.gt)
File "evaluation.py", line 242, in evaluation
pred_info = pred_list[str(img_list[j][0][0])]
KeyError: '0_Parade_marchingband_1_465'
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]

@xauat-liushipeng
Copy link
Author

sorry, i have solve the problem. But how can i get the PR curve?

@kingjames1155
Copy link

sorry, i have solve the problem. But how can i get the PR curve?

excuse me ,can you tell me How did you solve this problem?

@viljamirom
Copy link

sorry, i have solve the problem. But how can i get the PR curve?

excuse me ,can you tell me How did you solve this problem?

Make sure that you are using the validation data set for producing your predictions. (since the ground truths are for validation) Other option might be that for some reason you don't have the matching file in your predictions.

@NguyenKhacTuanAnh
Copy link

why do it have this error? I have run python setup.py build_ext --inplace
and python3 evaluation.py -p results/ -g ground_truth/

details:
0it [00:00, ?it/s]
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]
Traceback (most recent call last):
File "evaluation.py", line 287, in
evaluation(args.pred, args.gt)
File "evaluation.py", line 236, in evaluation
pred_list = pred[event_name]
KeyError: '0--Parade'

@NguyenKhacTuanAnh
Copy link

sorry, i have solve the problem. But how can i get the PR curve?

why do it have this error? I have run python setup.py build_ext --inplace
and python3 evaluation.py -p results/ -g ground_truth/

details:
Reading Predictions : 100%|█████████████████████| 61/61 [00:00<00:00, 93.52it/s]
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]Traceback (most recent call last):
File "evaluation.py", line 280, in
evaluation(args.pred, args.gt)
File "evaluation.py", line 242, in evaluation
pred_info = pred_list[str(img_list[j][0][0])]
KeyError: '0_Parade_marchingband_1_465'
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]

Excuse me. How do you solve problem?
Thank you

@xauat-liushipeng
Copy link
Author

sorry, i have solve the problem. But how can i get the PR curve?

why do it have this error? I have run python setup.py build_ext --inplace
and python3 evaluation.py -p results/ -g ground_truth/
details:
Reading Predictions : 100%|█████████████████████| 61/61 [00:00<00:00, 93.52it/s]
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]Traceback (most recent call last):
File "evaluation.py", line 280, in
evaluation(args.pred, args.gt)
File "evaluation.py", line 242, in evaluation
pred_info = pred_list[str(img_list[j][0][0])]
KeyError: '0_Parade_marchingband_1_465'
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]

Excuse me. How do you solve problem?
Thank you

I'm sorry forgot it. May be there is nothing in dir 'results'?

@NguyenKhacTuanAnh
Copy link

sorry, i have solve the problem. But how can i get the PR curve?

why do it have this error? I have run python setup.py build_ext --inplace
and python3 evaluation.py -p results/ -g ground_truth/
details:
Reading Predictions : 100%|█████████████████████| 61/61 [00:00<00:00, 93.52it/s]
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]Traceback (most recent call last):
File "evaluation.py", line 280, in
evaluation(args.pred, args.gt)
File "evaluation.py", line 242, in evaluation
pred_info = pred_list[str(img_list[j][0][0])]
KeyError: '0_Parade_marchingband_1_465'
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]

Excuse me. How do you solve problem?
Thank you

I'm sorry forgot it. May be there is nothing in dir 'results'?
I modify dir 'result' as below image. Where am i wrong?
Screenshot from 2021-06-11 11-07-55

@xauat-liushipeng
Copy link
Author

sorry, i have solve the problem. But how can i get the PR curve?

why do it have this error? I have run python setup.py build_ext --inplace
and python3 evaluation.py -p results/ -g ground_truth/
details:
Reading Predictions : 100%|█████████████████████| 61/61 [00:00<00:00, 93.52it/s]
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]Traceback (most recent call last):
File "evaluation.py", line 280, in
evaluation(args.pred, args.gt)
File "evaluation.py", line 242, in evaluation
pred_info = pred_list[str(img_list[j][0][0])]
KeyError: '0_Parade_marchingband_1_465'
Processing easy: 0%| | 0/61 [00:00<?, ?it/s]

Excuse me. How do you solve problem?
Thank you

I'm sorry forgot it. May be there is nothing in dir 'results'?
I modify dir 'result' as below image. Where am i wrong?
Screenshot from 2021-06-11 11-07-55

I did forget. You can try another method.Just after you get your test results, you can try the official MATLAB Toolbox

@huashunfu
Copy link

the inconsistence between data and ground true may bring this error

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

5 participants