-
Notifications
You must be signed in to change notification settings - Fork 8
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
Can this code run on the CCV dataset? #2
Comments
Well, I'm not particularly familiar with the CCV dataset, but if you're willing to make a couple of small changes it should work fine. In the code, You can either externally create a tool that maps your video & label pairs to 'filename , integer' encoded label format found in PS: Don't forget to run your videos through the optical flow script. It pre-calculates the optical flows for each video file in dataset and saves them efficiently on the disk. You need to change If your actual video files are in a hierarchical folder structure, you can either flatten them or change the file traversing bits in the scripts, it should be a trivial change to make. |
When I run 'model.py',Something went wrong. |
Well, there are a couple of restrictions in regards to memory usage. First, due to the nature of python, you'll have copies of the same object even if it's for a small time window, and tensorflow will also create copies when its copying data from python to its C backend. I'm not sure if this is a purely GPU memory problem, if it is, then I'm afraid I may not be able to help you off the top of my head. I'm not sure how tensorflow actually allocates using multiple GPUs and even if it does seperately allocate data, I don't know if it does so automatically. But this blog post seems a good place to start. Also a quick calculation shows that an array of that size will take about 15 GB when using 32 bit floats. I think you can try 16 bit floats, that may solve your problem. There are solid mathematical background on this, showing using 16 bit floats doesn't bring any more variance to your model. Edit: First, I suggest you to check your system memory and make sure whether this is an GPU or system memory limitation. Also, if you want a quick fix, you can try reducing L (height of the stack) or simply separate the input into multiple parts, (for example, split videos more than 10 seconds into 2 parts and make them have the same label etc.) |
I means Columbia Consumer Videos (CCV) Dateset.
The text was updated successfully, but these errors were encountered: