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 and kprokofi committed Oct 7, 2024
1 parent 8cc1961 commit b1cc38b
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 @@ -276,7 +276,7 @@ def adapt_tile_config(tile_config: TileConfig, dataset: Dataset, task: OTXTaskTy
task (Task): task type of the model
"""
if (train_dataset := dataset.subsets().get("train") or dataset.subsets().get("TRAINING")) is not None:
stat = compute_robust_dataset_statistics(train_dataset, task=task)
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"]
min_size = stat["annotation"]["size_of_shape"]["robust_min"]
Expand Down

0 comments on commit b1cc38b

Please sign in to comment.