-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recipe refinement (det, iseg, r-det, sseg, vpm, zsl) (#3712)
* Create base data recipe for each task * Remove configs which have default value * Performance check w/ medium dataset for reproducibility
- Loading branch information
Showing
52 changed files
with
493 additions
and
1,256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
task: DETECTION | ||
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 | ||
train_subset: | ||
subset_name: train | ||
transform_lib_type: TORCHVISION | ||
batch_size: 1 | ||
num_workers: 2 | ||
to_tv_image: false | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
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: torchvision.transforms.v2.ToImage | ||
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: torchvision.transforms.v2.ToImage | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
task: INSTANCE_SEGMENTATION | ||
mem_cache_size: 1GB | ||
mem_cache_img_max_size: null | ||
image_color_channel: RGB | ||
stack_images: true | ||
data_format: coco_instances | ||
include_polygons: true | ||
unannotated_items_ratio: 0.0 | ||
train_subset: | ||
subset_name: train | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 2 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
val_subset: | ||
subset_name: val | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 2 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
test_subset: | ||
subset_name: test | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 2 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
task: ROTATED_DETECTION | ||
mem_cache_size: 1GB | ||
mem_cache_img_max_size: null | ||
image_color_channel: RGB | ||
stack_images: true | ||
data_format: coco_instances | ||
include_polygons: true | ||
unannotated_items_ratio: 0.0 | ||
train_subset: | ||
subset_name: train | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: false | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 2 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
val_subset: | ||
subset_name: val | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: false | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 2 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
test_subset: | ||
subset_name: test | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: false | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 2 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
task: SEMANTIC_SEGMENTATION | ||
mem_cache_size: 1GB | ||
mem_cache_img_max_size: null | ||
image_color_channel: RGB | ||
data_format: common_semantic_segmentation_with_subset_dirs | ||
include_polygons: true | ||
unannotated_items_ratio: 0.0 | ||
ignore_index: 255 | ||
train_subset: | ||
subset_name: train | ||
batch_size: 8 | ||
num_workers: 4 | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.RandomResizedCrop | ||
init_args: | ||
size: | ||
- 512 | ||
- 512 | ||
scale: | ||
- 0.2 | ||
- 1.0 | ||
ratio: | ||
- 0.5 | ||
- 2.0 | ||
antialias: true | ||
- class_path: otx.core.data.transform_libs.torchvision.PhotoMetricDistortion | ||
init_args: | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.RandomHorizontalFlip | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
val_subset: | ||
subset_name: val | ||
batch_size: 8 | ||
num_workers: 4 | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.Resize | ||
init_args: | ||
size: | ||
- 512 | ||
- 512 | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
test_subset: | ||
subset_name: test | ||
num_workers: 4 | ||
batch_size: 8 | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.Resize | ||
init_args: | ||
size: | ||
- 512 | ||
- 512 | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
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,76 @@ | ||
task: VISUAL_PROMPTING | ||
mem_cache_size: 1GB | ||
mem_cache_img_max_size: null | ||
image_color_channel: RGB | ||
stack_images: false | ||
data_format: coco_instances | ||
unannotated_items_ratio: 0.0 | ||
vpm_config: | ||
use_bbox: true | ||
use_point: false | ||
|
||
train_subset: | ||
subset_name: train | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.ResizetoLongestEdge | ||
init_args: | ||
size: 1024 | ||
antialias: true | ||
- class_path: otx.core.data.transform_libs.torchvision.PadtoSquare | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
batch_size: 2 | ||
num_workers: 4 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
|
||
val_subset: | ||
subset_name: val | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.ResizetoLongestEdge | ||
init_args: | ||
size: 1024 | ||
antialias: true | ||
- class_path: otx.core.data.transform_libs.torchvision.PadtoSquare | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
batch_size: 1 | ||
num_workers: 4 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
|
||
test_subset: | ||
subset_name: test | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.ResizetoLongestEdge | ||
init_args: | ||
size: 1024 | ||
antialias: true | ||
- class_path: otx.core.data.transform_libs.torchvision.PadtoSquare | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
batch_size: 1 | ||
num_workers: 4 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler |
44 changes: 44 additions & 0 deletions
44
src/otx/recipe/_base_/data/zero_shot_visual_prompting.yaml
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,44 @@ | ||
task: ZERO_SHOT_VISUAL_PROMPTING | ||
mem_cache_size: 1GB | ||
mem_cache_img_max_size: null | ||
image_color_channel: RGB | ||
stack_images: false | ||
data_format: coco_instances | ||
unannotated_items_ratio: 0.0 | ||
|
||
vpm_config: | ||
use_bbox: True | ||
use_point: False | ||
|
||
train_subset: | ||
subset_name: train | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 4 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
|
||
val_subset: | ||
subset_name: val | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 4 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler | ||
|
||
test_subset: | ||
subset_name: test | ||
transform_lib_type: TORCHVISION | ||
to_tv_image: true | ||
transforms: | ||
- class_path: torchvision.transforms.v2.ToImage | ||
batch_size: 1 | ||
num_workers: 4 | ||
sampler: | ||
class_path: torch.utils.data.RandomSampler |
Oops, something went wrong.