Skip to content

Commit 2e2332d

Browse files
authored
Add warning message to tiling parameter (#2193)
* add warning to tiling parameter * add changelog and change requirement
1 parent d46e8d8 commit 2e2332d

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
## \[v1.2.2\]
66

7+
### Enhancements
8+
9+
- Improve warning message for tiling configurable parameter
10+
711
## \[v1.2.1\]
812

913
### Enhancements

otx/algorithms/common/configs/training_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ class BaseTilingParameters(ParameterGroup):
328328
default_value=False,
329329
header="Enable tiling",
330330
description="Set to True to allow tiny objects to be better detected.",
331-
warning="Tiling trades off speed for accuracy as it increases the number of images to be processed.",
331+
warning="Tiling trades off speed for accuracy as it increases the number of images to be processed. "
332+
"Important: In the current version, depending on the dataset size and the available hardware resources, "
333+
"a model may not train successfully when tiling is enabled.",
332334
affects_outcome_of=ModelLifecycle.NONE,
333335
)
334336

otx/algorithms/detection/configs/detection/configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ tiling_parameters:
480480
type: UI_RULES
481481
value: true
482482
visible_in_ui: true
483-
warning: Tiling trades off speed for accuracy as it increases the number of images to be processed. In turn, it's memory efficient as smaller resolution patches are handled at onces so that the possibility of OOM issues could be reduced.
483+
warning: "Tiling trades off speed for accuracy as it increases the number of images to be processed. In turn, it's memory efficient as smaller resolution patches are handled at onces so that the possibility of OOM issues could be reduced. Important: In the current version, depending on the dataset size and the available hardware resources, a model may not train successfully when tiling is enabled."
484484

485485
enable_adaptive_params:
486486
header: Enable adaptive tiling parameters

otx/algorithms/detection/configs/instance_segmentation/configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ tiling_parameters:
480480
type: UI_RULES
481481
value: true
482482
visible_in_ui: true
483-
warning: Tiling trades off speed for accuracy as it increases the number of images to be processed. In turn, it's memory efficient as smaller resolution patches are handled at onces so that the possibility of OOM issues could be reduced.
483+
warning: "Tiling trades off speed for accuracy as it increases the number of images to be processed. In turn, it's memory efficient as smaller resolution patches are handled at onces so that the possibility of OOM issues could be reduced. Important: In the current version, depending on the dataset size and the available hardware resources, a model may not train successfully when tiling is enabled."
484484

485485
enable_tile_classifier:
486486
header: Enable tile classifier

otx/algorithms/detection/configs/rotated_detection/configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ tiling_parameters:
427427
type: UI_RULES
428428
value: true
429429
visible_in_ui: true
430-
warning: Tiling trades off speed for accuracy as it increases the number of images to be processed. In turn, it's memory efficient as smaller resolution patches are handled at onces so that the possibility of OOM issues could be reduced.
430+
warning: "Tiling trades off speed for accuracy as it increases the number of images to be processed. In turn, it's memory efficient as smaller resolution patches are handled at onces so that the possibility of OOM issues could be reduced. Important: In the current version, depending on the dataset size and the available hardware resources, a model may not train successfully when tiling is enabled."
431431

432432
enable_adaptive_params:
433433
header: Enable adaptive tiling parameters
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
openvino==2022.3.0
22
openmodelzoo-modelapi==2022.3.0
3-
otx==1.2.1
3+
otx==1.2.2
44
numpy>=1.21.0,<=1.23.5 # np.bool was removed in 1.24.0 which was used in openvino runtime

0 commit comments

Comments
 (0)