diff --git a/README.md b/README.md index 3d33d80f..842dc6cd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ -[![openvino](https://img.shields.io/badge/openvino-2025.1-purple)]() +[![openvino](https://img.shields.io/badge/openvino-2025.2-purple)]() diff --git a/src/cpp/utils/src/image_utils.cpp b/src/cpp/utils/src/image_utils.cpp index b74588d9..4fa6efe4 100644 --- a/src/cpp/utils/src/image_utils.cpp +++ b/src/cpp/utils/src/image_utils.cpp @@ -71,8 +71,14 @@ Output resizeImageGraph(const ov::Output& input, auto w_ratio = std::make_shared(opset10::Constant::create(element::f32, Shape{1}, {float(w)}), iw); auto h_ratio = std::make_shared(opset10::Constant::create(element::f32, Shape{1}, {float(h)}), ih); auto scale = std::make_shared(w_ratio, h_ratio); - auto nw = std::make_shared(std::make_shared(iw, scale), element::i32); - auto nh = std::make_shared(std::make_shared(ih, scale), element::i32); + auto nw = std::make_shared( + std::make_shared(std::make_shared(iw, scale), + opset10::Round::RoundMode::HALF_TO_EVEN), + element::i32); + auto nh = std::make_shared( + std::make_shared(std::make_shared(ih, scale), + opset10::Round::RoundMode::HALF_TO_EVEN), + element::i32); auto new_size = std::make_shared(OutputVector{nh, nw}, 0); auto scales = opset10::Constant::create(element::f32, Shape{2}, {0.0f, 0.0f}); diff --git a/tests/python/accuracy/prepare_data.py b/tests/python/accuracy/prepare_data.py index ba7e9b4d..275361ca 100644 --- a/tests/python/accuracy/prepare_data.py +++ b/tests/python/accuracy/prepare_data.py @@ -20,8 +20,8 @@ async def download_images(data_dir): image = await client.get( "https://raw.githubusercontent.com/Shenggan/BCCD_Dataset/master/BCCD/JPEGImages/BloodImage_00007.jpg" ) - with data_dir / "BloodImage_00007.jpg" as im: - im.write_bytes(image.content) + with open(data_dir / "BloodImage_00007.jpg", "wb") as im: + im.write(image.content) async def stream_file(client, url, filename):