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

Ran out of frames. Looping #1

Open
Cogito2012 opened this issue Dec 16, 2021 · 1 comment
Open

Ran out of frames. Looping #1

Cogito2012 opened this issue Dec 16, 2021 · 1 comment

Comments

@Cogito2012
Copy link

Thanks for sharing the code for this great work!

I tried to run the DDP pre-training script on the UCF101 dataset, but there are many warnings like this:

aug_type 1, threshold: 0.5
=> train from scratch
====================
Loading Dataset from /data/ucf101/mp4, list file: ./data/lists/ucf101/train_split1.txt
	9537 samples, 0 missing, 0 Too short.
Log file Created

... (omitted for clarity)

Log: ===================================
lr: 0.001 -> 0.0001
Log: new lr: 0.0001
Ran out of frames. Looping.
Ran out of frames. Looping.
Ran out of frames. Looping.
Ran out of frames. Looping.
Ran out of frames. Looping.
Ran out of frames. Looping.
Ran out of frames. Looping.
...

From this issue report, it seems that the problem is caused by the incorrect frame indices when calling the lintel.loadvid_frame_nums in your code here. I checked the mp4 files of ucf101, they should be okay (could be read by OpenCV with the correct number of frames). Did you ever encounter such an issue?

@mettyz
Copy link
Owner

mettyz commented Jan 5, 2022

Hi, thank you for your comment.

I have encountered the same issue before. Refer to dukebw/lintel#31, the number of MP4 frames interpreted by lintel is off by 1 compared with using OpenCV.

In my experiment, the warning would be gone when reading the [1, vlen] frames for HMDB51 and [0, vlen-1] frames for UCF101 (Here "vlen" indicates the number of frames counted by OpenCV).

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