online_learning icon indicating copy to clipboard operation
online_learning copied to clipboard

How a initial model is used?

Open duydl opened this issue 3 years ago • 3 comments
trafficstars

Thank you for the awesome project. I am trying to reimplement the repo, but I got some questions I'd like to ask. As I understood from your paper, first an initial model that has been trained offline is used in the first round. But I could not find the code to import an external model in the object_3d_detector_ol.cpp I ran the object_3d_detector_3d with the LCAS bag file, but the result svm model has over 1500 SVs and the sv_coefs are all just 8 and -8.

duydl avatar Feb 25 '22 12:02 duydl

Hi, the online initial classifier is not really necessary to be trained "offline" but rather by a human supervisor. This means the correctness of positive and negative samples is guaranteed by the user (a human). Our experimental version used some hardcoding to ensure the accuracy (i.e. right label) of the initial samples. But the open-source version takes into account the requirement of readability and reusability. So what you could do is A) manually add initial samples or, B) use our package directly while ensuring the accuracy of the positive and negative samples the robot learns at the outset in a controlled environment (e.g. only one person moving around). Best.

yzrobot avatar Feb 25 '22 18:02 yzrobot

Thank you very much for prompt reply. May I ask how to manually add initial correct samples? I suppose by adding some feature vectors in the ".ros/svm_training_data"?

duydl avatar Feb 25 '22 18:02 duydl

Hi, there are many ways, for example you might be willing to prepare some positive and negative samples in advance and save them in one or more pcd files, read/load/learn them in order to initialize an svm model at the beginning of your robot learning in the environment. BTW, touching the source code seems necessary. Best.

yzrobot avatar Mar 01 '22 07:03 yzrobot