Skip to content

Commit

Permalink
Include Geti arrow dataset subset names (#3962)
Browse files Browse the repository at this point in the history
* restrited number of output masks by tiling

* add geti subset name

* update num of max pred
  • Loading branch information
eugene123tw authored Sep 20, 2024
1 parent b1ec8e7 commit aa31dca
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 aa31dca

Please # to comment.