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

How to implement the Multi-resolution net structure #32

Open
buweiaini opened this issue Nov 24, 2016 · 5 comments
Open

How to implement the Multi-resolution net structure #32

buweiaini opened this issue Nov 24, 2016 · 5 comments

Comments

@buweiaini
Copy link

Dear anson0910 :
Could you please show me an example of how to implement the Multi-resolution net structure?
I really don't know how to modify the .ptototxt file to implement, thank you very much!!

@anson0910
Copy link
Owner

I believe this can be done by the following steps:

  1. Add the 12-net layers to the 24-net .prototxt files (concatenating the fully connected layers as shown in the paper)
  2. Transplant the trained 12-net parameters to the multi-resolution net, and set the local learning rate to 0, as shown here
  3. Train the net

@buweiaini
Copy link
Author

Dear anson0910 :
Thank you for your reply!
I am sorry to trouble you again . When I train the caffemodel of 12-net, I used 18,000 positive faces collected from the AFLW datast, and about 180,000 non_face patchs, the model converge ,,,,,but when I use the 12-net caffemodel to test , the confidence of detect windows are all 0.5,,,,,,,,,then I augument the number of positives from18,000 to 54,000,,,,I get the same result,,,,,,,
Have you ever met this kind of problem?
Thank you !

@anson0910
Copy link
Owner

If during training, the accuracy on the validation set is higher than 0.9, 12-net should perform great during testing.
However, if the accuracy stays fixed at 0.5, you may need to stop the training, and start over again.
It should be an issue related to the initialized parameters' range or learning rate, but just retraining a few times should give the desired result!

@buweiaini
Copy link
Author

dear anson0910:
if i want to implement the multi-resolution net , how can i train the net?
i mean we must put a pair of images to the net, so how can we confirm that the each image in the pair can be pass into the net at the same time ?

@anson0910
Copy link
Owner

Hi,
I think you can simply create the lmdb files as before, and for example in face_24's train_val file, add a data layer specifying the data_param.

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

2 participants