Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model can't converge #21

Open
YangUSTC opened this issue Apr 9, 2017 · 16 comments
Open

model can't converge #21

YangUSTC opened this issue Apr 9, 2017 · 16 comments

Comments

@YangUSTC
Copy link

YangUSTC commented Apr 9, 2017

Hi there, I'm trying to use picolrn to train my own face detectors (using AFLW dataset).
first i use genki.py to preprocess my positive samples(24384faces),then i choose around 15G background images.
When i train the model, I haven't been able to get it to converge.In the first stage,there are 4 trees.In every stage,there are max trees as picolrn has setted.
With this in mind, I was wondering whether you had any advice as to how to solve this problem?
Sorry for my poor English!
Thanks!

@nenadmarkus
Copy link
Owner

Is the default training sample (GENKI) working well? I.e., were you able to get a working cascade?
If so, the dataset you use may be too "diverse" for trees of depth 5 (default). Try increasing the tree depth (line 851 in picolrn.c). E.g., set tdepth = 7.

@YangUSTC
Copy link
Author

Thanks for answering my question
The default training sample(GENKI) is working well(i mean about training).As you know,the GENKI dataset has a few people face,so the detection performance is not good in FDDB dataset.
I have read your paper.In the paper,your training sample is chosen in AFLW dataset,and setting the depth of trees 6.I also use AFLW dataset and set the depth of trees 6.And i haven't changed any other parameters.
Could you tell me more details about how to choose the positive and negative samples(especially in quantity)
Buy the way,only setting tdepth=12,in the first stage,the number of tree is 1.

@nenadmarkus
Copy link
Owner

Did you check whether your data-generating script outputs good images (faces) and that the bounding box coordinates are OK? Can you send me some face images with drawn bounding boxes generated by the script?

@YangUSTC
Copy link
Author

YangUSTC commented Apr 11, 2017 via email

@YangUSTC
Copy link
Author

I have already responded to your email.Please check it.

@nenadmarkus
Copy link
Owner

Yes, I can see your emails. However, there are no images attached.

@YangUSTC
Copy link
Author

I have checked this question.That's no problem(i think).I will send you some face images with drawn bounding boxes generated by the script through the annex(especially i picked some side face).I hope you can give me some advice about the training samples.

images.zip

@nenadmarkus
Copy link
Owner

The images seem OK. Note that pico will have problems if there's too much variation in the dataset.

Can you send me the output of picolrn.c when run on your data?

@YangUSTC
Copy link
Author

myfacefinder.zip
OK.I used the entire AFLW dataset(24384 face),and used genki.py to process the image(just nrands set to 3 ).Then i got 1584 trees.I have describe the problem when i first ask you this question.

@YangUSTC
Copy link
Author

Could you please give me your training data?

@nenadmarkus
Copy link
Owner

myfacefinder.zip

I expected the text that picolrn.c outputs to the console. Please send that.

Could you please give me your training data?

The original facefinder cascade was produced in 2013. Thus, I do not have its training data any more.

@linsonwang
Copy link

hi, YangUSTC
Did you finial get your training result well?

Linson Wang

@smartadpole
Copy link

smartadpole commented Dec 15, 2017

I get the same problem. I am willing to train a model, I have the right train data, but I do not know how to use the "picolrn.c". I have a puzzle about the function——"main"——in picolrn.c.

@smartadpole
Copy link

What are the parameters——argv[1], argv[2]... mean?

@smartadpole
Copy link

nobjects == 0;The program break.

@YangUSTC
Copy link
Author

YangUSTC commented Dec 16, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants