mirror of
https://github.com/opencv/opencv.git
synced 2026-11-30 13:22:08 -06:00
decode UTF-8 paths before passing them to ONNX Runtime
This commit is contained in:
@@ -2774,7 +2774,7 @@ void Net::Impl::collectOrtProfileData() const
|
||||
}
|
||||
|
||||
// Read the JSON entirely into memory, then parse it from the string.
|
||||
std::ifstream in(profile_path.get());
|
||||
std::ifstream in(toOrtPath(profile_path.get()).c_str());
|
||||
if (!in.is_open()) {
|
||||
CV_LOG_WARNING(NULL, "DNN/ORT: failed to open profile JSON " << profile_path.get());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user