Open Amadeus-AI opened 3 years ago
cannot reproduce
I stripped cv::imread so that the Mat in is always valid
#include "net.h"
int main(int argc, char** argv)
{
ncnn::UnlockedPoolAllocator ncnn_blob_pool_allocator_;
ncnn::PoolAllocator ncnn_workspace_pool_allocator_;
ncnn::Net ncnn_detector_;
ncnn::Option opt;
opt.blob_allocator = &ncnn_blob_pool_allocator_;
opt.workspace_allocator = &ncnn_workspace_pool_allocator_;
ncnn_detector_.opt = opt;
ncnn_detector_.load_param("model.param");
ncnn_detector_.load_model("model.bin");
ncnn::Mat in(128, 128, 3);
auto ncnn_extractor = ncnn_detector_.create_extractor();
ncnn_extractor.input("main_input", in);
ncnn::Mat out;
ncnn_extractor.extract("class_ret", out);
return 0;
}
Hi, thanks for the reply. libncnn.zip here's my libncnn.a, tag=20201208 Can you test with this? Also I build a libncnn.a with tag=20200916 and it works fine, weird. Forgot to mention that my platform is ubuntu 16 on wsl, maybe is the cause of part of the problem.
I encountered a really weird question, here's a very easy test:
And here's the model's param:
The problem is that: If I try to extect layer before 146 it works fine. If I try to extect layer 146, there will be 1 "FATAL ERROR! unlocked pool allocator get wild" msg but the output is still gotten. If I try to extect layer after 146, there will be 2 "FATAL ERROR! unlocked pool allocator get wild" msg and hang forever.
The test environment is ubuntu 16.04, i7-9700, ncnn built with -DNCNN_VULKAN=OFF, Tag=20201208 p.s. I tried this on win10 and it works fine. p.s.2 I tried test with squeezenet_v1.1 on ubuntu 16.04 and it works fine.