{"action":"opened","issue":{"url":"https://api.github.com/repos/Tencent/ncnn/issues/467","repository_url":"https://api.github.com/repos/Tencent/ncnn","labels_url":"https://api.github.com/repos/Tencent/ncnn/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/ncnn/issues/467/comments","events_url":"https://api.github.com/repos/Tencent/ncnn/issues/467/events","html_url":"https://github.com/Tencent/ncnn/issues/467","id":338114097,"node_id":"MDU6SXNzdWUzMzgxMTQwOTc=","number":467,"title":"sphereface转成ncnn后数据提取的问题","user":{"login":"EngineeringBoy","id":16382932,"node_id":"MDQ6VXNlcjE2MzgyOTMy","avatar_url":"https://avatars3.githubusercontent.com/u/16382932?v=4","gravatar_id":"","url":"https://api.github.com/users/EngineeringBoy","html_url":"https://github.com/EngineeringBoy","followers_url":"https://api.github.com/users/EngineeringBoy/followers","following_url":"https://api.github.com/users/EngineeringBoy/following{/other_user}","gists_url":"https://api.github.com/users/EngineeringBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/EngineeringBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EngineeringBoy/subscriptions","organizations_url":"https://api.github.com/users/EngineeringBoy/orgs","repos_url":"https://api.github.com/users/EngineeringBoy/repos","events_url":"https://api.github.com/users/EngineeringBoy/events{/privacy}","received_events_url":"https://api.github.com/users/EngineeringBoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-04T02:58:05Z","updated_at":"2018-07-04T02:58:05Z","closed_at":null,"author_association":"NONE","body":"rt，我把sphereface转换成ncnn后，同一张图像，提取出来的feature值跟matlab的feature不一样，有遇到相同问题的朋友吗？希望指教下，谢谢啦:)\r\n附上我的代码\r\nvoid sphereface::getfeature(ncnn::Mat& img_, std::vector<float>& feature) {\r\n\timg = img_;\r\n\timg.substract_mean_normalize(mean_vals, norm_vals);\r\n\tncnn::Mat in;\r\n\tresize_bilinear(img_, in, 112, 96);\r\n\tncnn::Extractor ex = SFnet.create_extractor();\r\n    ex.set_light_mode(true);\r\n    ex.input(\"data\", in);\r\n    ncnn::Mat feature_;\r\n    ex.extract(\"fc5\", feature_);\r\n    float *p = feature_.data;\r\n    for(int i=0;i<feature_.c;i++) {\r\n    \tfeature.push_back(*p);\r\n    \tp += feature_.cstep;\r\n    }\r\n}"}}
{"actor":{"display_login":"EngineeringBoy"}}