Skip to content

Commit

Permalink
add geti subset name
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene123tw committed Sep 19, 2024
1 parent bc49dbd commit 1d27865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otx/core/data/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def adapt_tile_config(tile_config: TileConfig, dataset: Dataset) -> None:
tile_config (TileConfig): tiling parameters of the model
dataset (Dataset): Datumaro dataset including all subsets
"""
if (train_dataset := dataset.subsets().get("train")) is not None:
if (train_dataset := dataset.subsets().get("train") or dataset.subsets().get("TRAINING")) is not None:
stat = compute_robust_dataset_statistics(train_dataset)
max_num_objects = round(stat["annotation"]["num_per_image"]["max"])
avg_size = stat["annotation"]["size_of_shape"]["avg"]
Expand Down

0 comments on commit 1d27865

Please sign in to comment.