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

Indexing in generate_result_video.py #30

Open
Newbeeyoung opened this issue Aug 16, 2018 · 7 comments
Open

Indexing in generate_result_video.py #30

Newbeeyoung opened this issue Aug 16, 2018 · 7 comments

Comments

@Newbeeyoung
Copy link

Newbeeyoung commented Aug 16, 2018

Hi,

Thanks a lot for the nice program.

I have went through the whole program and it worked well. However, i found that there may be some mistake of indexing in your code.

In generate_result_video.py:

       n_elements = min(unit, len(clips) - i)
        scores = np.array(clips[i]['scores'])
        for j in range(i, min(i + unit, len(clips))):
            scores += np.array(clips[i]['scores'])
        scores /= n_elements

Should this scores be set to 0 initially? and change clips[i] to clips[j] in the loop? Since you are averaging the scores during unit time.

@Mohamad73
Copy link

Hello,
can you please explain what the generate_result_video do? I ran it and it just duplicated the tested videos into another folder.

@Newbeeyoung
Copy link
Author

Newbeeyoung commented Aug 30, 2018

It just labels video based on output.json. A rectangle label will be shown at the left upper corner in the result video. @Mohamad73

@Mohamad73
Copy link

@Newbeeyoung Thank you!!!!!!!!!

@lyuanzhang
Copy link

lyuanzhang commented Apr 10, 2019

Could you please explain how the generate_result_video file runs? I tried to run this file but failed, and my output.json file is empty.
thanks!

@XianyuFFF
Copy link

Could you please explain how the generate_result_video file runs? I tried to run this file but failed, and my output.json file is empty.
thanks!

Do you know how the generate_result_video file runs? thank you

@shadsakib
Copy link

Did you get your answer? I'm having some trouble running generate_result_video.py.

Some of the errors I get:

1. 'rm' is not recognized as an internal or external command,
2. ../videos\: No such file or directory
3. ValueError: could not convert string to float: 'er'

@87nohigher
Copy link

I also got the error
KeyError: 'scores'
How to fix it?

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

6 participants