Comments (4)
The command and the input arguments look correct. I think the problem may come from the list file. Some (or at least one) of your input clips (a line in the list file) cannot be read. As shown in your log file, your datum size is 0. But it seems a few clips at the beginning are successfully read. You can check, this is true if you find "Starting Iteration" in your output log.
from c3d.
Hi Du, Thank you for your prompt reply! I probably found the reason.
The collapse point is at :
CHECK_EQ(size_in_datum, data_size) << "Incorrect data field size " << size_in_datum;
in compute_volume_mean_from_list.cpp.
When the caffe/util/image_io.cpp read this line:
/media/michael/F/data/UCF-101/UCF-101-frames/v_ApplyEyeMakeup_g09_c04 177 0
with length=16 and sampling_rate=1, image_io.cpp try to read images from 000177.jpg to 000192.jpg, however, v_ApplyEyeMakeup_g01_c04.avi have only 191 frames. So, the ReadImageSequenceToVolumeDatum() will return false. And datum.data().size() is 0;
However, in compute_volume_mean_from_list.cpp, (from Line 88 to 92),
ReadImageSequenceToVolumeDatum(frm_dir.c_str(), start_frm, label, length, height,
width, sampling_rate, &datum);
const string& data = datum.data();
size_in_datum = datum.data().size(); //
CHECK_EQ(size_in_datum, data_size) << "Incorrect data field size " << size_in_datum;
CHECK_EQ(size_in_datum, data_size) is not passed, because size_in_datum=0.
I try to revise the code:
CHECK_EQ(size_in_datum, data_size) << "Incorrect data field size " << size_in_datum;
into this:
if(size_in_datum != data_size) {
continue;
}
Then it works. But I`m not sure if this is right.
from c3d.
Hi @MichaelXin, your revised code just help you to skip the missing clips, but not solve your problem. I think for computing volume mean, it does not really affect the mean much, e.g. you have many clips and missing some of them does not significantly change the mean. However, you need to fix you list file for later usage (training, fine-tuning).
There is one difference, and I notice that it may be your problem. When you use frames as inputs, frame number starting from 1-n, but if you use video, frame number starting from 0 to (n-1), so caused your problem of missing clips at the end (boundary case).
I am closing this issue for now as the problem comes from the list file.
from c3d.
Thank you for your kind remind! That's really helpful~
from c3d.
Related Issues (20)
- Random crop is bad for this model? HOT 1
- Features are not being extracted for all the frames HOT 5
- static link error with anaconda HOT 1
- Couldn't found the result in the output folder HOT 1
- Make all fails at examples/mnist/convert_mnist_data.cpp HOT 2
- Error with no data at frame xx always appears while set sample_rate > 1
- Check Failed while training from scratch in 1.0 HOT 1
- using more gpu HOT 1
- ERROR : video_data_layer.cpp:252] Check failed: ReadImageSequenceToVolumeDatum
- File not found: conv3d_deepnetA_sport1m_iter_1900000 HOT 2
- [C3D v.1.0] Failed to execute: sh c3d_sport1m_feature_extraction_frm.sh HOT 4
- C3D Google Colab - Extract feature from raw video (mp4)
- Action similarity labeling - Similarity is NAN
- compilation error in C3D v1.0
- recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed,...Error while make in both C3D1.0 and 1.1
- GPU Configuration Details
- image_io.cpp:339] Could not open or find file HOT 1
- _make clean
- F0905 11:26:43.151420 12241 layer_factory.hpp:81] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: Video_Data
- Have some error for running extract_C3D_feature.py in C3D-v1.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c3d.