Skip to content

Commit a85a980

Browse files
authored
improve the description of the 'Tile size' parameter (#1108) (#1125)
1 parent b1e4c68 commit a85a980

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

interactive_ai/services/director/tests/fixtures/backward_compatibility_configuration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4620,7 +4620,11 @@ def fxt_legacy_model_configuration_rest_view():
46204620
"key": "tile_size",
46214621
"name": "Tile size",
46224622
"type": "int",
4623-
"description": "Size of each tile in pixels",
4623+
"description": "Size of each tile in pixels. "
4624+
"Decreasing the tile size typically results in higher accuracy, "
4625+
"but it is also more computationally expensive due to the higher number of tiles. "
4626+
"In any case, the tile must be large enough to capture the entire object "
4627+
"and its surrounding context, so choose a value larger than the size of most annotations.",
46244628
"value": 400,
46254629
"default_value": 128,
46264630
"min_value": 0,

libs/configuration_tools/src/geti_configuration_tools/hyperparameters/augmentation.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,18 @@ class Tiling(BaseModelNoExtra):
133133
adaptive_tiling: bool = Field(
134134
default=False, title="Adaptive tiling", description="Whether to use adaptive tiling based on image content"
135135
)
136-
tile_size: int = Field(gt=0, default=128, title="Tile size", description="Size of each tile in pixels")
136+
tile_size: int = Field(
137+
gt=0,
138+
default=128,
139+
title="Tile size",
140+
description=(
141+
"Size of each tile in pixels. "
142+
"Decreasing the tile size typically results in higher accuracy, "
143+
"but it is also more computationally expensive due to the higher number of tiles. "
144+
"In any case, the tile must be large enough to capture the entire object and its surrounding context, "
145+
"so choose a value larger than the size of most annotations."
146+
),
147+
)
137148
tile_overlap: float = Field(
138149
ge=0.0,
139150
lt=1.0,

0 commit comments

Comments
 (0)