-
Notifications
You must be signed in to change notification settings - Fork 478
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
About preparing training data #22
Comments
The frames inside a clip (folder) should be continuous. The clips can be in different order which doesn't affect the training because the network only looks at the frames from one particular clip. There is no need for sorted and it actually doesn't work because 11 is taken before 2. I have added zero padding using `%04d' here so that frames are named 0001.jpg, 0002.jpg and so on. But if you have more than 9999 frames, you'll have to increase the zero padding. |
Thank you for your quickly reply. According to what you said, I think my understand is right. What I'd like to say is that the frames inside a clip is not continuous when I used create_dataset.py. Maybe different operating system has different result. In may case, I use ubuntu 16.04. Sorry in advance, if I still misunderstand something. |
Ohh. I haven't tested it on Linux OSes yet. Thanks for pointing out the bug. |
Hey, I want to know whether the images in one folder are really continues, or I just need to change the images' name by myself? The checkpoint trained by myself works really terrible, and is there anything to do with this bug? |
Fixed issues as per suggestions.
Yes. The images inside 'clips' folders which contains 12 images should be continuous. If they are not, that would mess up the training. I have updated the dataset generation script. Try running it again to generate the whole dataset. |
Thank you for sharing your nice work!
I used create_dataset.py to build the training dataset as you mentioned. But I find that 12 frames in each clip is not continuous.
Maybe L.69 in create_dataset.py should be modified:
images = os.listdir(os.path.join(root, file))
->images = sorted(os.listdir(os.path.join(root, file)))
Or I misunderstood, the frame in each clip should not be continuous?
The text was updated successfully, but these errors were encountered: