M
M
mihuzz2021-01-29 20:22:48
OpenCV
mihuzz, 2021-01-29 20:22:48

How to fix "Cant load pretrained model"?

**Cant load pretrained model **
Net net;

if (framework == "torch")
net = cv::dnn::readNetFromTorch(mode);
else


terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.1) /home/opencvapp/opencv-4.5.1/modules/dnn/src/torch/torch_importer.cpp:1017: error : (-213:The function/feature is not implemented) Unsupported Lua type in function 'readObject'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question