rodrigob / barinova_pedestrians_detection

Linux port of original Windows code from Olga Barinova
http://graphics.cs.msu.ru/en/science/research/machinelearning/hough
81 stars 55 forks source link

Forest file doesn't exist #2

Open zhuofudeng opened 9 years ago

zhuofudeng commented 9 years ago

I run the command the do the testing:

./object_detection ~/Develop/barinova_pedestrians_detection-master/example/campus-config

It gives me an error:

Loading config file Done Reading images from host_folder == '/home/zhuofu/Develop/barinova_pedestrians_detection-master/example/tud-campus-sequence/' Created output folder /home/zhuofu/Develop/barinova_pedestrians_detection-master/example/results/ Reading forest from file ... Forest file doesn't exist!

My campus_config file:

// folder with input images
/home/zhuofu/Develop/barinova_pedestrians_detection-master/example/tud-campus-sequence/
\\
// output folder
/home/zhuofu/Develop/barinova_pedestrians_detection-master/example/results/
\\
// width of a bounding box at each scale corresponding to detection
40
\\
// height of a bounding box at each scale corresponding to detection
84
\\
// number of scales for multi-scale detection
5
\\
// resize images before detection by this coefficient
0.55
\\
//forest name
/home/zhuofu/Develop/barinova_pedestrians_detection-master/example/barpedestrian.dat
\\
//size of patch in a forest
16
\\
// half of maximum width of object in the data used for training the forest
30
\\
// half of maximum height of object in the data used for training the forest
45
\\
// bias of background cost, parameter of detection algorithm
8.5
\\
// penalty for adding a hypothesis, parameter of detection algorithm
1500
\\
//only patches with probabilities to belong to background lower than this threshold can vote
0.7
\\
//minimal allowed probability of a patch to belong to object, if probability is lesser the vote is ignored
0.00005
\\
// radius of blur for hough images
5
\\
// size of images at subsequent scales differ by coefficient 
0.85
\\
// maximum number of objects in an image
8
rajattrt commented 9 years ago

Is the issue solved?

mishoo2 commented 9 years ago

I changed this: /root/barinova_pedestrians_detection-master/example\pedestrian.dat to this: /root/barinova_pedestrians_detection-master/example/pedestrian.dat

In campus-config.txt (in linux) and problem went away.