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

Error and Explanation of Generate_result_videos function #33

Open
Mohamad73 opened this issue Aug 29, 2018 · 1 comment
Open

Error and Explanation of Generate_result_videos function #33

Mohamad73 opened this issue Aug 29, 2018 · 1 comment

Comments

@Mohamad73
Copy link

Hi, first I am trying to get the accuracy of my system after I got my output.json. I am using python3 eval_ucf101.py. I have the val.json( which I assume that it is my output.json) and ucf101_01.json which is annotation file. when I run eval_ucf101.py using these files I am getting the following error. python3 eval_ucf101.py Traceback (most recent call last): File "eval_ucf101.py", line 157, in <module> ucf_classification = UCFclassification('data/ucf101_01.json', 'data/results/val.json', subset='validation', top_k=1) File "eval_ucf101.py", line 22, in __init__ self.prediction = self._import_prediction(prediction_filename) File "eval_ucf101.py", line 92, in _import_prediction for videoid, v in data['results'].items(): TypeError: list indices must be integers or slices, not str.

Also, anybody can explain Generate_result_videos function because I am just getting the tested results into another folder called video_pred. Answer to any of these two questions is appreciated.

@Mohamad73
Copy link
Author

Still looking for an answer for the error,but I got an answer what generate_result_videos function does. It just labels video based on output.json. A rectangle label will be shown at the left upper corner in the result video.Answered by Newbeeyoung

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

1 participant