From 501484c06e69c5d930e01530080ed8c6c4999335 Mon Sep 17 00:00:00 2001 From: Samet Date: Fri, 10 Mar 2023 14:35:57 +0000 Subject: [PATCH 1/6] Fix metadata path --- notebooks/000_getting_started/001_getting_started.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/000_getting_started/001_getting_started.ipynb b/notebooks/000_getting_started/001_getting_started.ipynb index a138552892..b40519ace9 100644 --- a/notebooks/000_getting_started/001_getting_started.ipynb +++ b/notebooks/000_getting_started/001_getting_started.ipynb @@ -434,7 +434,7 @@ ], "source": [ "openvino_model_path = output_path / \"openvino\" / \"model.bin\"\n", - "metadata_path = output_path / \"openvino\" / \"meta_data.json\"\n", + "metadata_path = output_path / \"openvino\" / \"metadata.json\"\n", "print(openvino_model_path.exists(), metadata_path.exists())" ] }, From 0b6a39d3042f0183a546bcc5bdd91151dd6ff32b Mon Sep 17 00:00:00 2001 From: Samet Date: Mon, 14 Aug 2023 17:28:58 +0100 Subject: [PATCH 2/6] Ignore hidden directories in folder dataset --- src/anomalib/data/utils/path.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/anomalib/data/utils/path.py b/src/anomalib/data/utils/path.py index c498909062..93784ba57b 100644 --- a/src/anomalib/data/utils/path.py +++ b/src/anomalib/data/utils/path.py @@ -58,7 +58,11 @@ def _prepare_files_labels( if isinstance(extensions, str): extensions = (extensions,) - filenames = [f for f in path.glob(r"**/*") if f.suffix in extensions and not f.is_dir()] + filenames = [ + f + for f in path.glob("**/*") + if f.suffix in extensions and not f.is_dir() and not any(part.startswith(".") for part in f.parts) + ] if not filenames: raise RuntimeError(f"Found 0 {path_type} images in {path}") From d9dd0a2c85ecfba82a07f52641116557a4676838 Mon Sep 17 00:00:00 2001 From: Samet Date: Tue, 15 Aug 2023 16:09:54 +0100 Subject: [PATCH 3/6] Add check for mask_dir for segmentation tasks in Folder dataset --- src/anomalib/data/folder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/anomalib/data/folder.py b/src/anomalib/data/folder.py index c5093c60ea..12eecf7166 100644 --- a/src/anomalib/data/folder.py +++ b/src/anomalib/data/folder.py @@ -261,8 +261,11 @@ def __init__( seed=seed, ) - self.normal_split_ratio = normal_split_ratio + if task == TaskType.SEGMENTATION and mask_dir is None: + if val_split_mode != ValSplitMode.SYNTHETIC or test_split_mode != TestSplitMode.SYNTHETIC: + raise ValueError(f"Mask directory must be provided for {task} task. but got {mask_dir}") + self.normal_split_ratio = normal_split_ratio transform_train = get_transforms( config=transform_config_train, image_size=image_size, From 216aa6292c821e2955dda43a7409063c3705376c Mon Sep 17 00:00:00 2001 From: Samet Date: Fri, 3 Nov 2023 07:29:18 +0000 Subject: [PATCH 4/6] Limit the gradio version to <4 --- requirements/loggers.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/loggers.txt b/requirements/loggers.txt index f6a4157d0c..6214698337 100644 --- a/requirements/loggers.txt +++ b/requirements/loggers.txt @@ -1,5 +1,5 @@ comet-ml>=3.31.7 -gradio>=2.9.4 +gradio>=2.9.4,<4 tensorboard wandb==0.12.17 GitPython From 8069656adc607dbbf4ccf4ab3f96b7eca701d4b5 Mon Sep 17 00:00:00 2001 From: Samet Date: Wed, 13 Dec 2023 11:11:36 +0000 Subject: [PATCH 5/6] Announce anomalib v1 on readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index cdeff03bf9..9f6809a32b 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,18 @@ --- +# ๐ŸŒŸ Upcoming Release: Anomalib v1 ๐ŸŒŸ + +We're excited to announce that Anomalib v1 is on the horizon! This major release packs new features, enhancements, and performance improvements. + +Get a sneak peek of Anomalib v1: + +- ๐Ÿ“ **Documentation**: Discover the latest additions and enhancements [here](https://anomalib--1540.org.readthedocs.build/en/1540/). +- ๐Ÿงช **Early Testing**: Help us refine the final release by testing pre-release features and report issues [here](https://github.com/openvinotoolkit/anomalib/issues). +- ๐Ÿ“ **Contribute**: Your input is invaluable - Help us make anomalib v1.x even better. Read more about the contribution guidelines [here](https://github.com/openvinotoolkit/anomalib/blob/main/CONTRIBUTING.md) + +--- + # Introduction Anomalib is a deep learning library that aims to collect state-of-the-art anomaly detection algorithms for benchmarking on both public and private datasets. Anomalib provides several ready-to-use implementations of anomaly detection algorithms described in the recent literature, as well as a set of tools that facilitate the development and implementation of custom models. The library has a strong focus on image-based anomaly detection, where the goal of the algorithm is to identify anomalous images, or anomalous pixel regions within images in a dataset. Anomalib is constantly updated with new algorithms and training/inference extensions, so keep checking! From 47701ac6d359bcaf83707b81596b69973449d36a Mon Sep 17 00:00:00 2001 From: Samet Date: Wed, 13 Dec 2023 11:41:21 +0000 Subject: [PATCH 6/6] Add the installation instructions and update the documentation link --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f6809a32b..7fb4c3ea80 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,17 @@ We're excited to announce that Anomalib v1 is on the horizon! This major release Get a sneak peek of Anomalib v1: -- ๐Ÿ“ **Documentation**: Discover the latest additions and enhancements [here](https://anomalib--1540.org.readthedocs.build/en/1540/). +- โš™๏ธ **Installation**: Until it is released, you can install it via: + + ```bash + git command git clone -b v1 git@github.com:openvinotoolkit/anomalib.git + cd anomalib + pip install -e . + ``` + +- ๐Ÿ“˜ **Documentation**: Discover the latest additions and enhancements [here](https://anomalib.readthedocs.io/en/v1/). - ๐Ÿงช **Early Testing**: Help us refine the final release by testing pre-release features and report issues [here](https://github.com/openvinotoolkit/anomalib/issues). -- ๐Ÿ“ **Contribute**: Your input is invaluable - Help us make anomalib v1.x even better. Read more about the contribution guidelines [here](https://github.com/openvinotoolkit/anomalib/blob/main/CONTRIBUTING.md) +- ๐Ÿ‘ฉโ€๐Ÿ’ป **Contribute**: Your input is invaluable - Help us make anomalib v1.x even better. Read more about the contribution guidelines [here](https://github.com/openvinotoolkit/anomalib/blob/main/CONTRIBUTING.md) ---