|
|
|
@ -3329,7 +3329,7 @@ void LayerFactory::registerLayer(const String &type, Constructor constructor) |
|
|
|
|
CV_TRACE_ARG_VALUE(type, "type", type.c_str()); |
|
|
|
|
|
|
|
|
|
cv::AutoLock lock(getLayerFactoryMutex()); |
|
|
|
|
String type_ = type.toLowerCase(); |
|
|
|
|
String type_ = toLowerCase(type); |
|
|
|
|
LayerFactory_Impl::iterator it = getLayerFactoryImpl().find(type_); |
|
|
|
|
|
|
|
|
|
if (it != getLayerFactoryImpl().end()) |
|
|
|
@ -3347,7 +3347,7 @@ void LayerFactory::unregisterLayer(const String &type) |
|
|
|
|
CV_TRACE_ARG_VALUE(type, "type", type.c_str()); |
|
|
|
|
|
|
|
|
|
cv::AutoLock lock(getLayerFactoryMutex()); |
|
|
|
|
String type_ = type.toLowerCase(); |
|
|
|
|
String type_ = toLowerCase(type); |
|
|
|
|
|
|
|
|
|
LayerFactory_Impl::iterator it = getLayerFactoryImpl().find(type_); |
|
|
|
|
if (it != getLayerFactoryImpl().end()) |
|
|
|
@ -3365,7 +3365,7 @@ Ptr<Layer> LayerFactory::createLayerInstance(const String &type, LayerParams& pa |
|
|
|
|
CV_TRACE_ARG_VALUE(type, "type", type.c_str()); |
|
|
|
|
|
|
|
|
|
cv::AutoLock lock(getLayerFactoryMutex()); |
|
|
|
|
String type_ = type.toLowerCase(); |
|
|
|
|
String type_ = toLowerCase(type); |
|
|
|
|
LayerFactory_Impl::const_iterator it = getLayerFactoryImpl().find(type_); |
|
|
|
|
|
|
|
|
|
if (it != getLayerFactoryImpl().end()) |
|
|
|
@ -3402,7 +3402,7 @@ BackendWrapper::~BackendWrapper() {} |
|
|
|
|
|
|
|
|
|
Net readNet(const String& _model, const String& _config, const String& _framework) |
|
|
|
|
{ |
|
|
|
|
String framework = _framework.toLowerCase(); |
|
|
|
|
String framework = toLowerCase(_framework); |
|
|
|
|
String model = _model; |
|
|
|
|
String config = _config; |
|
|
|
|
const std::string modelExt = model.substr(model.rfind('.') + 1); |
|
|
|
@ -3447,7 +3447,7 @@ Net readNet(const String& _model, const String& _config, const String& _framewor |
|
|
|
|
Net readNet(const String& _framework, const std::vector<uchar>& bufferModel, |
|
|
|
|
const std::vector<uchar>& bufferConfig) |
|
|
|
|
{ |
|
|
|
|
String framework = _framework.toLowerCase(); |
|
|
|
|
String framework = toLowerCase(_framework); |
|
|
|
|
if (framework == "caffe") |
|
|
|
|
return readNetFromCaffe(bufferConfig, bufferModel); |
|
|
|
|
else if (framework == "tensorflow") |
|
|
|
|