diff --git a/src/inference/src/ie_network_reader.cpp b/src/inference/src/ie_network_reader.cpp index 17f02c12c41..64de8ca20c7 100644 --- a/src/inference/src/ie_network_reader.cpp +++ b/src/inference/src/ie_network_reader.cpp @@ -181,6 +181,10 @@ CNNNetwork load_ir_v7_network(const std::string& modelPath, std::string model_path = modelPath; # endif + if (ov::util::directory_exists(modelPath)) { + return {}; + } + // Try to open model file std::ifstream modelStream(model_path.c_str(), std::ios::binary); if (!modelStream.is_open())