diff --git a/Vitis-AI-Library/facefeature/include/vitis/ai/facefeature.hpp b/Vitis-AI-Library/facefeature/include/vitis/ai/facefeature.hpp index 615f91397..3f520db9e 100644 --- a/Vitis-AI-Library/facefeature/include/vitis/ai/facefeature.hpp +++ b/Vitis-AI-Library/facefeature/include/vitis/ai/facefeature.hpp @@ -44,14 +44,14 @@ namespace ai { * Float sample code : * @code cv:Mat image = cv::imread("test_face.jpg"); - auto network = xilinx::ai::FaceFeature::create("facerec_resnet20", true); + auto network = vitis::ai::FaceFeature::create("facerec_resnet20", true); auto result = network->run(image); @endcode * * Fixed sample code : * @code cv:Mat image = cv::imread("test_face.jpg"); - auto network = xilinx::ai::FaceFeature::create("facerec_resnet20", true); + auto network = vitis::ai::FaceFeature::create("facerec_resnet20", true); auto result = network->run_fixed(image); @endcode * @@ -80,8 +80,7 @@ namespace ai { return (float)dot; } - float feature_compare(const int8_t *feature, const int8_t *feature_lib, - float fuck = 0) { + float feature_compare(const int8_t *feature, const int8_t *feature_lib) { float norm = feature_norm(feature); float feature_norm_lib = feature_norm(feature_lib); return feature_dot(feature, feature_lib) * norm * feature_norm_lib; diff --git a/Vitis-AI-Library/facefeature/test/test_compare.cpp b/Vitis-AI-Library/facefeature/test/test_compare.cpp index 7084269be..3e1ecf12e 100644 --- a/Vitis-AI-Library/facefeature/test/test_compare.cpp +++ b/Vitis-AI-Library/facefeature/test/test_compare.cpp @@ -36,8 +36,7 @@ static float feature_dot(const int8_t *f1, const int8_t *f2) { return (float)dot; } -float feature_compare(const int8_t *feature, const int8_t *feature_lib, - float fuck = 0) { +float feature_compare(const int8_t *feature, const int8_t *feature_lib) { float norm = feature_norm(feature); float feature_norm_lib = feature_norm(feature_lib); return feature_dot(feature, feature_lib) * norm * feature_norm_lib; @@ -45,8 +44,6 @@ float feature_compare(const int8_t *feature, const int8_t *feature_lib, float score_map(float score) { return 1.0 / (1 + exp(-12.4 * score + 3.763)); } - - int main(int argc,char* argv[]){ if(argc < 4){ std::cout << "usage : " << argv[0] << "" diff --git a/Vitis-AI-Library/facefeature/test/test_compare_l64.cpp b/Vitis-AI-Library/facefeature/test/test_compare_l64.cpp index 91c1dfd2a..f02df996e 100644 --- a/Vitis-AI-Library/facefeature/test/test_compare_l64.cpp +++ b/Vitis-AI-Library/facefeature/test/test_compare_l64.cpp @@ -36,8 +36,7 @@ static float feature_dot(const int8_t *f1, const int8_t *f2) { return (float)dot; } -float feature_compare(const int8_t *feature, const int8_t *feature_lib, - float fuck = 0) { +float feature_compare(const int8_t *feature, const int8_t *feature_lib) { float norm = feature_norm(feature); float feature_norm_lib = feature_norm(feature_lib); return feature_dot(feature, feature_lib) * norm * feature_norm_lib;