ccv icon indicating copy to clipboard operation
ccv copied to clipboard

Issues with dpmvldtr and models created with dpmcreate

Open chiragraman opened this issue 11 years ago • 3 comments

Hello,

I tried using dpmcreate after 98f8d3e introduced the regression to handle the output from liblinear. The model trained for 6 days after which I tried testing it on the street image provided in samples. The final model detected 0 pedestrians.

I then tried to use one of the intermediate models (iteration 9.49) for testing and it returned the following image.

output_9 49

I then tried to use the dpmvldtr to see if this particular image was an outlier and if pedestrians were detected in other images. However running the validater on the dataset after using the provided model yields the following error:

./dpmvldtr.rb:45: undefined method +' for nil:NilClass (NoMethodError) from ./dpmvldtr.rb:41:ineach_line' from ./dpmvldtr.rb:41

Here is the final model after I trained it using dpmcreate: http://pastebin.com/CyjUsCbz

Here is the intermediate model I used for testing that yielded the image attached: http://pastebin.com/L0JTSccH

Is there anything I can do fix this? Any help is appreciated.

Thanks a lot!

chiragraman avatar Dec 23 '13 23:12 chiragraman

which version of ccv do you use? I think that I fix this in https://github.com/liuliu/ccv/commit/3b2d8ec9ff0ac61caf8666f48aefa65f135b950e

liuliu avatar Dec 24 '13 02:12 liuliu

The intermediate model gives wrong output because it should be something like . 1 15 5

instead, the intermediate model without any modification is: , 1 1 15 5

there is an extra 1 which is problematic.

I tried to make this better in ICF implementation (i.e. how to handle process resume / intermediate model etc.) but the best solution that I envision would be use sqlite for all these data, which will be introduced in the future version.

liuliu avatar Dec 24 '13 02:12 liuliu

Hello,

Thank you for replying!

  1. I just checked 3b2d8ec and my dpm.c is indeed the updated one, so that shouldn't be a problem.
  2. I got rid of the extra 1 in the intermediate model and tried again, and received 0 detections.

I was wondering if you suggest something I can do to at least get this to work. Also, any suggestions on how to get dpmvldtr to work? I checked and have the updated version as of 3b2d8ec and still throws the error:

./dpmvldtr.rb:45: undefined method +' for nil:NilClass (NoMethodError) from ./dpmvldtr.rb:41:ineach_line' from ./dpmvldtr.rb:41

Thanks a lot!

Best, Chirag

chiragraman avatar Dec 24 '13 17:12 chiragraman