-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing tile recipes and various tile recipe changes (#3942)
* add missing tile recipes * Fix tiling XAI out of range (#3943) - Fix tile merge XAI out of range * update xai tile merge * update rtdetr * update tile recipes * update rtdetr tile postprocess * update rtdetr recipes and tile recipes * update tile recipes * fix rtdetr unittest * update recipes * refactor tile unit test * address pr reviews * remove unnecessary files * update color channel * fix image channel passing * include tiling in cli integration test * remove transform_bbox --------- Co-authored-by: Vladislav Sovrasov <sovrasov.vlad@gmail.com>
- Loading branch information
1 parent
8f96f27
commit 0f87c86
Showing
24 changed files
with
542 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
task: DETECTION | ||
input_size: | ||
- 800 | ||
- 800 | ||
mem_cache_size: 1GB | ||
mem_cache_img_max_size: null | ||
image_color_channel: RGB | ||
stack_images: true | ||
data_format: coco_instances | ||
unannotated_items_ratio: 0.0 | ||
tile_config: | ||
enable_tiler: true | ||
enable_adaptive_tiling: true | ||
train_subset: | ||
subset_name: train | ||
transform_lib_type: TORCHVISION | ||
batch_size: 1 | ||
num_workers: 2 | ||
to_tv_image: false | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.Resize | ||
init_args: | ||
scale: $(input_size) | ||
keep_ratio: false | ||
transform_bbox: true | ||
- class_path: otx.core.data.transform_libs.torchvision.RandomFlip | ||
init_args: | ||
prob: 0.5 | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [0.0, 0.0, 0.0] | ||
std: [255.0, 255.0, 255.0] | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
|
||
val_subset: | ||
subset_name: val | ||
transform_lib_type: TORCHVISION | ||
batch_size: 1 | ||
num_workers: 2 | ||
to_tv_image: false | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.Resize | ||
init_args: | ||
scale: $(input_size) | ||
keep_ratio: false | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [0.0, 0.0, 0.0] | ||
std: [255.0, 255.0, 255.0] | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
|
||
test_subset: | ||
subset_name: test | ||
transform_lib_type: TORCHVISION | ||
batch_size: 1 | ||
num_workers: 2 | ||
to_tv_image: false | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.Resize | ||
init_args: | ||
scale: $(input_size) | ||
keep_ratio: false | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [0.0, 0.0, 0.0] | ||
std: [255.0, 255.0, 255.0] | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
model: | ||
class_path: otx.algo.detection.atss.ResNeXt101ATSS | ||
init_args: | ||
label_info: 80 | ||
|
||
optimizer: | ||
class_path: torch.optim.SGD | ||
init_args: | ||
lr: 0.004 | ||
momentum: 0.9 | ||
weight_decay: 0.0001 | ||
|
||
scheduler: | ||
class_path: otx.core.schedulers.LinearWarmupSchedulerCallable | ||
init_args: | ||
num_warmup_steps: 3 | ||
main_scheduler_callable: | ||
class_path: lightning.pytorch.cli.ReduceLROnPlateau | ||
init_args: | ||
mode: max | ||
factor: 0.1 | ||
patience: 4 | ||
monitor: val/map_50 | ||
|
||
engine: | ||
task: DETECTION | ||
device: auto | ||
|
||
callback_monitor: val/map_50 | ||
|
||
data: ../_base_/data/detection_tile.yaml | ||
overrides: | ||
gradient_clip_val: 35.0 | ||
callbacks: | ||
- class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling | ||
init_args: | ||
max_interval: 5 | ||
decay: -0.025 | ||
min_lrschedule_patience: 3 | ||
|
||
data: | ||
train_subset: | ||
batch_size: 4 | ||
sampler: | ||
class_path: otx.algo.samplers.balanced_sampler.BalancedSampler | ||
|
||
val_subset: | ||
batch_size: 4 | ||
|
||
test_subset: | ||
batch_size: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.