diff --git a/CHANGELOG.md b/CHANGELOG.md index c15028bc356..570682d6fd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,8 @@ All notable changes to this project will be documented in this file. ### Bug fixes +- Update anomaly base transforms to use square resizing + () - Fix Combined Dataloader & unlabeled warmup loss in Semi-SL () - Revert #3579 to fix issues with replacing coco_instance with a different format in some dataset diff --git a/src/otx/__init__.py b/src/otx/__init__.py index 53f0688db23..11d4d3f1bed 100644 --- a/src/otx/__init__.py +++ b/src/otx/__init__.py @@ -3,7 +3,7 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -__version__ = "2.2.0rc10" +__version__ = "2.2.0rc11" import os from pathlib import Path diff --git a/src/otx/recipe/_base_/data/anomaly.yaml b/src/otx/recipe/_base_/data/anomaly.yaml index 2f74b987915..dd3a4f244c6 100644 --- a/src/otx/recipe/_base_/data/anomaly.yaml +++ b/src/otx/recipe/_base_/data/anomaly.yaml @@ -1,5 +1,5 @@ task: ANOMALY_CLASSIFICATION -input_size: 256 +input_size: [256, 256] data_format: mvtec mem_cache_size: 1GB mem_cache_img_max_size: null @@ -13,11 +13,10 @@ train_subset: batch_size: 32 num_workers: 4 transforms: - - class_path: otx.core.data.transform_libs.torchvision.ResizetoLongestEdge + - class_path: torchvision.transforms.v2.Resize init_args: - size: $(input_size) + size: [256, 256] 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} @@ -36,11 +35,10 @@ val_subset: batch_size: 32 num_workers: 4 transforms: - - class_path: otx.core.data.transform_libs.torchvision.ResizetoLongestEdge + - class_path: torchvision.transforms.v2.Resize init_args: - size: $(input_size) + size: [256, 256] 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} @@ -59,11 +57,10 @@ test_subset: batch_size: 32 num_workers: 4 transforms: - - class_path: otx.core.data.transform_libs.torchvision.ResizetoLongestEdge + - class_path: torchvision.transforms.v2.Resize init_args: - size: $(input_size) + size: [256, 256] 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}