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

The order of frame sequences in Videodataset is wrong. #30

Open
wantsjean opened this issue Jul 8, 2019 · 0 comments
Open

The order of frame sequences in Videodataset is wrong. #30

wantsjean opened this issue Jul 8, 2019 · 0 comments

Comments

@wantsjean
Copy link

frames = sorted([os.path.join(file_dir, img) for img in os.listdir(file_dir)])
this operation will get something like
0001
00010
00011
00012
...
00019
0002
00020
00021
...
the correct code should be
frames = sorted([os.path.join(file_dir, img) for img in os.listdir(file_dir)],key=lambda x:int(x.split('/')[-1][:-4]))
0001
0002
0003
0004
...

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