You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
. When loading image paths and sorting them, considering your single frames are named:
li = ['00000.png', '00001.png', '00002.png','000010.png', '0000100.png'] li.sort()
will give you: ['00000.png', '00001.png', '000010.png', '0000100.png', '00002.png']
which is not the natural order when someone sliced a video to single frames.
Try to examine a list with the full path. I tried it and got right result! it was like this: ['images/00/00001.png', 'images/00/00002.png', 'images/00/00010.png', 'images/00/00020.png', 'images/01/00001.png', 'images/01/00002.png', 'images/01/00010.png', 'images/01/00020.png', 'images/10/00001.png', 'images/10/00002.png', 'images/10/00010.png', 'images/10/00020.png']
Hello,
thanks for your awesome work. However there is a major issue i guess, in your data_helper.py
DeepVO-pytorch/data_helper.py
Line 22 in bb43825
li = ['00000.png', '00001.png', '00002.png','000010.png', '0000100.png']
li.sort()
will give you:
['00000.png', '00001.png', '000010.png', '0000100.png', '00002.png']
which is not the natural order when someone sliced a video to single frames.
I'm using https://pypi.org/project/natsort/ for this issue, giving you
The text was updated successfully, but these errors were encountered: