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

Generator extremely slow #47

Open
Michelvl92 opened this issue Jun 10, 2021 · 1 comment
Open

Generator extremely slow #47

Michelvl92 opened this issue Jun 10, 2021 · 1 comment
Assignees

Comments

@Michelvl92
Copy link

Hi,

I have used your generator, for video clips of resolution: 640,480 (mp4), which are between 6sec - 5min long. When the generator is configured to output a batchsize of 2, and nb frames of 24. But to take the first batch of the generator, and can take up to 24sec. I don’t have a slow server. It’s a relatively new Intel Xeon with 12 cores, up to 4Ghz, 64GB of RAM and a 1080 gpu.

Training will take up to multiple days with such slow loading times, and this framework is not usable.

Would you have any idea how to speed this up? E.g. should I divide my videos to multiple smaller videos of e.g. 5 sec?

kind regards.

@metal3d metal3d self-assigned this Jul 7, 2021
@metal3d
Copy link
Owner

metal3d commented Jul 7, 2021

There are severa possibilities that makes the video reading so slow. The first one is that your video meta values (inside header) doesn't give the right frame count, so the generator needs to read the entire video to count the frames. MP4 is sometimes a problem for me too.
I have not a lot of times for a few months to work on the project and to enhance it. I will try to find some times to make better benchmarks.

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