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

about the det2_half.caffemodel #10

Open
zyg11 opened this issue Dec 19, 2018 · 3 comments
Open

about the det2_half.caffemodel #10

zyg11 opened this issue Dec 19, 2018 · 3 comments

Comments

@zyg11
Copy link

zyg11 commented Dec 19, 2018

Hello, I test these models , and have found the size of det2_half.caffemodel is just 198k,more smaller than the size of origin model which is 398k.But I find the prototxt of det2 is same as original det2's prototxt .So could you tell me how to compress the det2_half.caffemodel to 198k size det2_half.caffemodel?Thank you!

@szad670401
Copy link
Owner

szad670401 commented Dec 23, 2018

the det2_half is same version as the origin mtcnn version.I convert it to fp16 with opencv.

@tanghy2016
Copy link

tanghy2016 commented Jan 24, 2019

>>> import caffe
>>> deploy = "./det2.prototxt"
>>> model = "./det2_half.caffemodel"
>>> net = caffe.Net(deploy, model, caffe.TEST)

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0124 13:46:58.335070 14075 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W0124 13:46:58.335242 14075 caffe.cpp:123] Use this instead (with the named "weights" parameter):
...
I0124 13:47:03.393421 14075 net.cpp:283] Network initialization done.
I0124 13:47:03.394093 14075 net.cpp:761] Ignoring source layer data_pos
I0124 13:47:03.394105 14075 net.cpp:761] Ignoring source layer data_part
I0124 13:47:03.394112 14075 net.cpp:761] Ignoring source layer data_neg
I0124 13:47:03.394119 14075 net.cpp:761] Ignoring source layer pnet_data
I0124 13:47:03.394124 14075 net.cpp:761] Ignoring source layer pnet_label
I0124 13:47:03.394129 14075 net.cpp:761] Ignoring source layer slicer_data
I0124 13:47:03.394134 14075 net.cpp:761] Ignoring source layer null_label
F0124 13:47:03.394157 14075 blob.cpp:507] Check failed: count
== proto.data_size() (756 vs. 0)
*** Check failure stack trace: ***
Aborted (core dumped)

@ALONGNEU
Copy link

>>> import caffe
>>> deploy = "./det2.prototxt"
>>> model = "./det2_half.caffemodel"
>>> net = caffe.Net(deploy, model, caffe.TEST)

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0124 13:46:58.335070 14075 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W0124 13:46:58.335242 14075 caffe.cpp:123] Use this instead (with the named "weights" parameter): ... I0124 13:47:03.393421 14075 net.cpp:283] Network initialization done. I0124 13:47:03.394093 14075 net.cpp:761] Ignoring source layer data_pos I0124 13:47:03.394105 14075 net.cpp:761] Ignoring source layer data_part I0124 13:47:03.394112 14075 net.cpp:761] Ignoring source layer data_neg I0124 13:47:03.394119 14075 net.cpp:761] Ignoring source layer pnet_data I0124 13:47:03.394124 14075 net.cpp:761] Ignoring source layer pnet_label I0124 13:47:03.394129 14075 net.cpp:761] Ignoring source layer slicer_data I0124 13:47:03.394134 14075 net.cpp:761] Ignoring source layer null_label F0124 13:47:03.394157 14075 blob.cpp:507] Check failed: count == proto.data_size() (756 vs. 0)
*** Check failure stack trace: ***
Aborted (core dumped)

Have you solve this problem yet? I find this too. @tanghy2016

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