Code Monkey home page Code Monkey logo

Comments (4)

dutran avatar dutran commented on July 22, 2024

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.

MichaelXin avatar MichaelXin commented on July 22, 2024

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.

dutran avatar dutran commented on July 22, 2024

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.

MichaelXin avatar MichaelXin commented on July 22, 2024

Thank you for your kind remind! That's really helpful~

from c3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.