mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-10 21:59:54 -05:00
optimize face recognizer for dual_buff mode
This commit is contained in:
@@ -319,7 +319,7 @@ namespace maix::nn
|
||||
image::Image *std_img = img.affine(objs->at(i).points, _std_points, _feature_input_size, _feature_input_size);
|
||||
// img.save("/root/test0.jpg");
|
||||
// std_img->save("/root/test.jpg");
|
||||
tensor::Tensors *outputs = _model_feature->forward_image(*std_img, this->mean_feature, this->scale_feature, fit, false);
|
||||
tensor::Tensors *outputs = _model_feature->forward_image(*std_img, this->mean_feature, this->scale_feature, fit, false, get_feature || get_face);
|
||||
if (!outputs) // not ready for dual_buff mode
|
||||
{
|
||||
delete std_img;
|
||||
|
||||
Reference in New Issue
Block a user