OAID / TengineKit

TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
Other
2.38k stars 318 forks source link

demo 报错 #18

Closed higolel closed 3 years ago

higolel commented 3 years ago

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)

Crusoekid commented 3 years ago

I don’t understand what went wrong with you, you can dump it and see

higolel commented 3 years ago

Execute the order ./FaceSDKDemo ../resources/image/4.jpg result: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)

higolel commented 3 years ago

demo.cpp facesdk_readModelFromFile(ModelType::Landmark, "models/landmark4.bin", ImageFormat::RGB, true);

but tenginekit_api.h void faces dk_readModelFromFile(ModelType type, const char* model_path, ImageFormat modelInputFormat);

Crusoekid commented 3 years ago

i Had update ,you can use the newest .use "faces dk_readModelFromFile(ModelType type, const char* model_path, ImageFormat modelInputFormat);" api

Litou-lyh commented 3 years ago

I tried the new version and changed the model paths into absolute paths, and it worked. Please try!