From 4002fdccf8182cb81e521dd41747956e0a186c39 Mon Sep 17 00:00:00 2001 From: Eugene Liu Date: Mon, 6 Jan 2025 09:25:20 +0000 Subject: [PATCH] Remove DFINE M, S, N model configuration files --- src/otx/recipe/detection/dfine_m.yaml | 113 ------------------- src/otx/recipe/detection/dfine_m_tile.yaml | 124 --------------------- src/otx/recipe/detection/dfine_n.yaml | 113 ------------------- src/otx/recipe/detection/dfine_n_tile.yaml | 124 --------------------- src/otx/recipe/detection/dfine_s.yaml | 113 ------------------- src/otx/recipe/detection/dfine_s_tile.yaml | 124 --------------------- 6 files changed, 711 deletions(-) delete mode 100644 src/otx/recipe/detection/dfine_m.yaml delete mode 100644 src/otx/recipe/detection/dfine_m_tile.yaml delete mode 100644 src/otx/recipe/detection/dfine_n.yaml delete mode 100644 src/otx/recipe/detection/dfine_n_tile.yaml delete mode 100644 src/otx/recipe/detection/dfine_s.yaml delete mode 100644 src/otx/recipe/detection/dfine_s_tile.yaml diff --git a/src/otx/recipe/detection/dfine_m.yaml b/src/otx/recipe/detection/dfine_m.yaml deleted file mode 100644 index 4458de7ef0..0000000000 --- a/src/otx/recipe/detection/dfine_m.yaml +++ /dev/null @@ -1,113 +0,0 @@ -model: - class_path: otx.algo.detection.d_fine.DFine - init_args: - model_name: dfine_hgnetv2_m - label_info: 80 - multi_scale: true - - optimizer: - class_path: torch.optim.AdamW - init_args: - lr: 0.0002 - betas: [0.9, 0.999] - weight_decay: 0.0001 - - scheduler: - class_path: otx.core.schedulers.LinearWarmupSchedulerCallable - init_args: - num_warmup_steps: 100 - main_scheduler_callable: - class_path: lightning.pytorch.cli.ReduceLROnPlateau - init_args: - mode: max - factor: 0.1 - patience: 6 - monitor: val/map_50 -engine: - task: DETECTION - device: auto - -callback_monitor: val/map_50 - -data: ../_base_/data/torchvision_base.yaml -overrides: - callbacks: - - class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling - init_args: - max_interval: 1 - min_lrschedule_patience: 3 - - class_path: otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup - init_args: - warmup_iters: 100 - warmup_epochs: 7 - - data: - input_size: - - 640 - - 640 - task: DETECTION - stack_images: true - data_format: coco_instances - train_subset: - batch_size: 16 - num_workers: 4 - to_tv_image: true - transforms: - - class_path: torchvision.transforms.v2.RandomPhotometricDistort - init_args: - p: 0.5 - - class_path: torchvision.transforms.v2.RandomZoomOut - init_args: - fill: 0 - - class_path: otx.core.data.transform_libs.torchvision.RandomIoUCrop - init_args: - p: 0.8 - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - - class_path: otx.core.data.transform_libs.torchvision.RandomFlip - init_args: - prob: 0.5 - - class_path: otx.core.data.transform_libs.torchvision.Resize - init_args: - scale: $(input_size) - transform_bbox: true - keep_ratio: false - is_numpy_to_tvtensor: true - - class_path: torchvision.transforms.v2.ToDtype - init_args: - dtype: ${as_torch_dtype:torch.float32} - scale: true - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - sampler: - class_path: otx.algo.samplers.balanced_sampler.BalancedSampler - - val_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true - - test_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true diff --git a/src/otx/recipe/detection/dfine_m_tile.yaml b/src/otx/recipe/detection/dfine_m_tile.yaml deleted file mode 100644 index 1f1d881e3e..0000000000 --- a/src/otx/recipe/detection/dfine_m_tile.yaml +++ /dev/null @@ -1,124 +0,0 @@ -model: - class_path: otx.algo.detection.d_fine.DFine - init_args: - model_name: dfine_hgnetv2_m - label_info: 80 - multi_scale: false - - optimizer: - class_path: torch.optim.AdamW - init_args: - lr: 0.0002 - betas: [0.9, 0.999] - weight_decay: 0.0001 - - scheduler: - class_path: otx.core.schedulers.LinearWarmupSchedulerCallable - init_args: - num_warmup_steps: 5 - main_scheduler_callable: - class_path: lightning.pytorch.cli.ReduceLROnPlateau - init_args: - mode: max - factor: 0.1 - patience: 6 - monitor: val/map_50 -engine: - task: DETECTION - device: auto - -callback_monitor: val/map_50 - -data: ../_base_/data/detection_tile.yaml -overrides: - callbacks: - - class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling - init_args: - max_interval: 1 - decay: -0.025 - min_lrschedule_patience: 3 - - class_path: otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup - init_args: - monitor: null - mode: max - patience: 10 - check_on_train_epoch_end: false - min_delta: 0.001 - warmup_iters: 100 - warmup_epochs: 7 - - reset: - - data.train_subset.transforms - - data.val_subset.transforms - - data.test_subset.transforms - - data: - input_size: - - 640 - - 640 - task: DETECTION - stack_images: true - data_format: coco_instances - train_subset: - batch_size: 8 - num_workers: 4 - to_tv_image: true - transforms: - - class_path: torchvision.transforms.v2.RandomPhotometricDistort - init_args: - p: 0.5 - - class_path: torchvision.transforms.v2.RandomZoomOut - init_args: - fill: 0 - - class_path: otx.core.data.transform_libs.torchvision.RandomIoUCrop - init_args: - p: 0.8 - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - - class_path: otx.core.data.transform_libs.torchvision.RandomFlip - init_args: - prob: 0.5 - - class_path: otx.core.data.transform_libs.torchvision.Resize - init_args: - scale: $(input_size) - transform_bbox: true - keep_ratio: false - is_numpy_to_tvtensor: true - - class_path: torchvision.transforms.v2.ToDtype - init_args: - dtype: ${as_torch_dtype:torch.float32} - scale: true - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - sampler: - class_path: otx.algo.samplers.balanced_sampler.BalancedSampler - - val_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true - - test_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true diff --git a/src/otx/recipe/detection/dfine_n.yaml b/src/otx/recipe/detection/dfine_n.yaml deleted file mode 100644 index 3a78a21bb8..0000000000 --- a/src/otx/recipe/detection/dfine_n.yaml +++ /dev/null @@ -1,113 +0,0 @@ -model: - class_path: otx.algo.detection.d_fine.DFine - init_args: - model_name: dfine_hgnetv2_n - label_info: 80 - multi_scale: true - - optimizer: - class_path: torch.optim.AdamW - init_args: - lr: 0.0008 - betas: [0.9, 0.999] - weight_decay: 0.0001 - - scheduler: - class_path: otx.core.schedulers.LinearWarmupSchedulerCallable - init_args: - num_warmup_steps: 100 - main_scheduler_callable: - class_path: lightning.pytorch.cli.ReduceLROnPlateau - init_args: - mode: max - factor: 0.1 - patience: 6 - monitor: val/map_50 -engine: - task: DETECTION - device: auto - -callback_monitor: val/map_50 - -data: ../_base_/data/torchvision_base.yaml -overrides: - callbacks: - - class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling - init_args: - max_interval: 1 - min_lrschedule_patience: 3 - - class_path: otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup - init_args: - warmup_iters: 100 - warmup_epochs: 7 - - data: - input_size: - - 640 - - 640 - task: DETECTION - stack_images: true - data_format: coco_instances - train_subset: - batch_size: 16 - num_workers: 4 - to_tv_image: true - transforms: - - class_path: torchvision.transforms.v2.RandomPhotometricDistort - init_args: - p: 0.5 - - class_path: torchvision.transforms.v2.RandomZoomOut - init_args: - fill: 0 - - class_path: otx.core.data.transform_libs.torchvision.RandomIoUCrop - init_args: - p: 0.8 - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - - class_path: otx.core.data.transform_libs.torchvision.RandomFlip - init_args: - prob: 0.5 - - class_path: otx.core.data.transform_libs.torchvision.Resize - init_args: - scale: $(input_size) - transform_bbox: true - keep_ratio: false - is_numpy_to_tvtensor: true - - class_path: torchvision.transforms.v2.ToDtype - init_args: - dtype: ${as_torch_dtype:torch.float32} - scale: true - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - sampler: - class_path: otx.algo.samplers.balanced_sampler.BalancedSampler - - val_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true - - test_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true diff --git a/src/otx/recipe/detection/dfine_n_tile.yaml b/src/otx/recipe/detection/dfine_n_tile.yaml deleted file mode 100644 index c192bf5962..0000000000 --- a/src/otx/recipe/detection/dfine_n_tile.yaml +++ /dev/null @@ -1,124 +0,0 @@ -model: - class_path: otx.algo.detection.d_fine.DFine - init_args: - model_name: dfine_hgnetv2_n - label_info: 80 - multi_scale: false - - optimizer: - class_path: torch.optim.AdamW - init_args: - lr: 0.0008 - betas: [0.9, 0.999] - weight_decay: 0.0001 - - scheduler: - class_path: otx.core.schedulers.LinearWarmupSchedulerCallable - init_args: - num_warmup_steps: 5 - main_scheduler_callable: - class_path: lightning.pytorch.cli.ReduceLROnPlateau - init_args: - mode: max - factor: 0.1 - patience: 6 - monitor: val/map_50 -engine: - task: DETECTION - device: auto - -callback_monitor: val/map_50 - -data: ../_base_/data/detection_tile.yaml -overrides: - callbacks: - - class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling - init_args: - max_interval: 1 - decay: -0.025 - min_lrschedule_patience: 3 - - class_path: otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup - init_args: - monitor: null - mode: max - patience: 10 - check_on_train_epoch_end: false - min_delta: 0.001 - warmup_iters: 100 - warmup_epochs: 7 - - reset: - - data.train_subset.transforms - - data.val_subset.transforms - - data.test_subset.transforms - - data: - input_size: - - 640 - - 640 - task: DETECTION - stack_images: true - data_format: coco_instances - train_subset: - batch_size: 8 - num_workers: 4 - to_tv_image: true - transforms: - - class_path: torchvision.transforms.v2.RandomPhotometricDistort - init_args: - p: 0.5 - - class_path: torchvision.transforms.v2.RandomZoomOut - init_args: - fill: 0 - - class_path: otx.core.data.transform_libs.torchvision.RandomIoUCrop - init_args: - p: 0.8 - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - - class_path: otx.core.data.transform_libs.torchvision.RandomFlip - init_args: - prob: 0.5 - - class_path: otx.core.data.transform_libs.torchvision.Resize - init_args: - scale: $(input_size) - transform_bbox: true - keep_ratio: false - is_numpy_to_tvtensor: true - - class_path: torchvision.transforms.v2.ToDtype - init_args: - dtype: ${as_torch_dtype:torch.float32} - scale: true - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - sampler: - class_path: otx.algo.samplers.balanced_sampler.BalancedSampler - - val_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true - - test_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true diff --git a/src/otx/recipe/detection/dfine_s.yaml b/src/otx/recipe/detection/dfine_s.yaml deleted file mode 100644 index c8c8a2a875..0000000000 --- a/src/otx/recipe/detection/dfine_s.yaml +++ /dev/null @@ -1,113 +0,0 @@ -model: - class_path: otx.algo.detection.d_fine.DFine - init_args: - model_name: dfine_hgnetv2_s - label_info: 80 - multi_scale: true - - optimizer: - class_path: torch.optim.AdamW - init_args: - lr: 0.0002 - betas: [0.9, 0.999] - weight_decay: 0.0001 - - scheduler: - class_path: otx.core.schedulers.LinearWarmupSchedulerCallable - init_args: - num_warmup_steps: 100 - main_scheduler_callable: - class_path: lightning.pytorch.cli.ReduceLROnPlateau - init_args: - mode: max - factor: 0.1 - patience: 6 - monitor: val/map_50 -engine: - task: DETECTION - device: auto - -callback_monitor: val/map_50 - -data: ../_base_/data/torchvision_base.yaml -overrides: - callbacks: - - class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling - init_args: - max_interval: 1 - min_lrschedule_patience: 3 - - class_path: otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup - init_args: - warmup_iters: 100 - warmup_epochs: 7 - - data: - input_size: - - 640 - - 640 - task: DETECTION - stack_images: true - data_format: coco_instances - train_subset: - batch_size: 16 - num_workers: 4 - to_tv_image: true - transforms: - - class_path: torchvision.transforms.v2.RandomPhotometricDistort - init_args: - p: 0.5 - - class_path: torchvision.transforms.v2.RandomZoomOut - init_args: - fill: 0 - - class_path: otx.core.data.transform_libs.torchvision.RandomIoUCrop - init_args: - p: 0.8 - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - - class_path: otx.core.data.transform_libs.torchvision.RandomFlip - init_args: - prob: 0.5 - - class_path: otx.core.data.transform_libs.torchvision.Resize - init_args: - scale: $(input_size) - transform_bbox: true - keep_ratio: false - is_numpy_to_tvtensor: true - - class_path: torchvision.transforms.v2.ToDtype - init_args: - dtype: ${as_torch_dtype:torch.float32} - scale: true - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - sampler: - class_path: otx.algo.samplers.balanced_sampler.BalancedSampler - - val_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true - - test_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true diff --git a/src/otx/recipe/detection/dfine_s_tile.yaml b/src/otx/recipe/detection/dfine_s_tile.yaml deleted file mode 100644 index 87712ac3de..0000000000 --- a/src/otx/recipe/detection/dfine_s_tile.yaml +++ /dev/null @@ -1,124 +0,0 @@ -model: - class_path: otx.algo.detection.d_fine.DFine - init_args: - model_name: dfine_hgnetv2_s - label_info: 80 - multi_scale: false - - optimizer: - class_path: torch.optim.AdamW - init_args: - lr: 0.0002 - betas: [0.9, 0.999] - weight_decay: 0.0001 - - scheduler: - class_path: otx.core.schedulers.LinearWarmupSchedulerCallable - init_args: - num_warmup_steps: 5 - main_scheduler_callable: - class_path: lightning.pytorch.cli.ReduceLROnPlateau - init_args: - mode: max - factor: 0.1 - patience: 6 - monitor: val/map_50 -engine: - task: DETECTION - device: auto - -callback_monitor: val/map_50 - -data: ../_base_/data/detection_tile.yaml -overrides: - callbacks: - - class_path: otx.algo.callbacks.adaptive_train_scheduling.AdaptiveTrainScheduling - init_args: - max_interval: 1 - decay: -0.025 - min_lrschedule_patience: 3 - - class_path: otx.algo.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup - init_args: - monitor: null - mode: max - patience: 10 - check_on_train_epoch_end: false - min_delta: 0.001 - warmup_iters: 100 - warmup_epochs: 7 - - reset: - - data.train_subset.transforms - - data.val_subset.transforms - - data.test_subset.transforms - - data: - input_size: - - 640 - - 640 - task: DETECTION - stack_images: true - data_format: coco_instances - train_subset: - batch_size: 8 - num_workers: 4 - to_tv_image: true - transforms: - - class_path: torchvision.transforms.v2.RandomPhotometricDistort - init_args: - p: 0.5 - - class_path: torchvision.transforms.v2.RandomZoomOut - init_args: - fill: 0 - - class_path: otx.core.data.transform_libs.torchvision.RandomIoUCrop - init_args: - p: 0.8 - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - - class_path: otx.core.data.transform_libs.torchvision.RandomFlip - init_args: - prob: 0.5 - - class_path: otx.core.data.transform_libs.torchvision.Resize - init_args: - scale: $(input_size) - transform_bbox: true - keep_ratio: false - is_numpy_to_tvtensor: true - - class_path: torchvision.transforms.v2.ToDtype - init_args: - dtype: ${as_torch_dtype:torch.float32} - scale: true - - class_path: torchvision.transforms.v2.SanitizeBoundingBoxes - init_args: - min_size: 1 - sampler: - class_path: otx.algo.samplers.balanced_sampler.BalancedSampler - - val_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true - - test_subset: - batch_size: 8 - to_tv_image: true - 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} - scale: true