decode UTF-8 paths before passing them to ONNX Runtime

This commit is contained in:
Varun Jaiswal
2026-08-25 18:57:31 +05:30
parent 18b9bc30a4
commit f055cf2756
3 changed files with 40 additions and 13 deletions

View File

@@ -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;