From 8cc1961b7ee4ce3c35ab290c776168ab0afbc7bd Mon Sep 17 00:00:00 2001 From: Eunwoo Shin Date: Mon, 7 Oct 2024 13:36:42 +0900 Subject: [PATCH] Decrease CPU memory usage during unit test (#3999) reduce maximum value of rnd_tile_overlap --- tests/unit/core/data/test_tiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/core/data/test_tiling.py b/tests/unit/core/data/test_tiling.py index 923c0bdeb2c..be8f31f2924 100644 --- a/tests/unit/core/data/test_tiling.py +++ b/tests/unit/core/data/test_tiling.py @@ -516,7 +516,7 @@ def test_seg_tile_merge(self, fxt_data_config): def test_seg_tiler(self, mocker): rng = np.random.default_rng() rnd_tile_size = rng.integers(low=100, high=500) - rnd_tile_overlap = min(rng.random(), 0.99) + rnd_tile_overlap = rng.random() * 0.75 image_size = rng.integers(low=1000, high=5000) np_image = np.zeros((image_size, image_size, 3), dtype=np.uint8)