Skip to content

Update v2 with the recent changes on main #2421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7556dd8
Update timm requirement from <=1.0.7,>=1.0.7 to >=1.0.7,<=1.0.9 (#2274)
dependabot[bot] Sep 24, 2024
3768bb3
🐞Update `setuptools` requirement for PEP 660 support (#2320)
samet-akcay Sep 25, 2024
983ec58
Fix transforms for draem, dsr and rkde (#2324)
blaz-r Sep 26, 2024
f473df8
Add check before loading metrics data from checkpoint (#2323)
blaz-r Sep 26, 2024
191e21f
Add PIMO (#2329)
ashwinvaidya17 Oct 2, 2024
404e896
Makes batch size dynamic (#2339)
Marcus1506 Oct 3, 2024
2ba5ede
Add pimo tutorial advanced i (fixed) (#2336)
jpcbertoldo Oct 6, 2024
f1c734f
Pimo tutorials/02 advanced ii (#2347)
jpcbertoldo Oct 9, 2024
3acf51a
Create epic.yaml
samet-akcay Oct 14, 2024
71e4824
πŸ”¨ Update the issue templates (#2363)
samet-akcay Oct 14, 2024
e5dd67f
Update task.yaml
samet-akcay Oct 14, 2024
2c2fac1
Create user_story.yaml
samet-akcay Oct 14, 2024
4e13e8a
Update epic.yaml
samet-akcay Oct 15, 2024
71cb136
Pimo tutorials/03 advanced iii (#2348)
jpcbertoldo Oct 15, 2024
b36b780
πŸ”¨ Deprecate try import and replace it with Lightning's package_availa…
samet-akcay Oct 15, 2024
c99f868
Refactor folder3d to avoid complex-structure (C901) issue (#2185)
samet-akcay Oct 16, 2024
0823ab8
πŸš€ Add datumaro annotation dataloader (#2377)
ashwinvaidya17 Oct 17, 2024
1465b05
Pimo tutorials/04 advanced iv (#2352)
jpcbertoldo Oct 17, 2024
6eeb7f6
🐞 Defer OpenVINO import to avoid unnecessary warnings (#2385)
samet-akcay Oct 22, 2024
3a403ae
πŸš€ Add VLM based Anomaly Model (#2344)
ashwinvaidya17 Oct 22, 2024
db4c285
Add ensembling methods for tiling to Anomalib (#1226)
blaz-r Oct 24, 2024
0301d59
πŸ“š Add training from a checkpoint example (#2389)
samet-akcay Oct 24, 2024
c00e101
Export experiment duration in seconds in CSV. (#2392)
mzweilin Oct 24, 2024
31952db
Make single GPU benchmarking 5x more efficient (#2390)
mzweilin Oct 24, 2024
f4f9b9a
🐞 Fix installation package issues (#2395)
samet-akcay Oct 24, 2024
42b3ad5
Export the flattened config in benchmark CSV. (#2391)
mzweilin Oct 25, 2024
7d6b89c
`v1.2.0` Release (#2397)
samet-akcay Oct 31, 2024
6ed0067
Bump Anomalib version to `2.0.0dev` in `main` (#2402)
samet-akcay Oct 31, 2024
bcc0b43
🐞Replace package_available with module_available (#2407)
harimkang Nov 5, 2024
c8257c9
merge main
djdameln Nov 11, 2024
0421837
fix datumaro config
djdameln Nov 12, 2024
68f1652
fix edge case in benchmarking pipeline
djdameln Nov 14, 2024
34341ab
fix vlm ad
djdameln Nov 15, 2024
8e76e43
remove ensemble tiling in preparation of refactor
djdameln Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,62 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### New Contributors

## [v1.2.0]

### Added

- πŸš€ Add ensembling methods for tiling to Anomalib by @blaz-r in https://github.com/openvinotoolkit/anomalib/pull/1226
- πŸ“š optimization/quantization added into 500 series by @paularamo in https://github.com/openvinotoolkit/anomalib/pull/2197
- πŸš€ Add PIMO by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/2329
- πŸ“š Add PIMO tutorial advanced i (fixed) by @jpcbertoldo in https://github.com/openvinotoolkit/anomalib/pull/2336
- πŸš€ Add VLM based Anomaly Model by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/2344
- πŸ“š Add PIMO tutorials/02 advanced ii by @jpcbertoldo in https://github.com/openvinotoolkit/anomalib/pull/2347
- πŸ“š Add PIMO tutorials/03 advanced iii by @jpcbertoldo in https://github.com/openvinotoolkit/anomalib/pull/2348
- πŸ“š Add PIMO tutorials/04 advanced iv by @jpcbertoldo in https://github.com/openvinotoolkit/anomalib/pull/2352
- πŸš€ Add datumaro annotation dataloader by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/2377
- πŸ“š Add training from a checkpoint example by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2389

### Changed

- πŸ”¨ Refactor folder3d to avoid complex-structure (C901) issue by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2185
- Update open-clip-torch requirement from <2.26.1,>=2.23.0 to >=2.23.0,<2.26.2 by @dependabot in https://github.com/openvinotoolkit/anomalib/pull/2189
- Update sphinx requirement by @dependabot in https://github.com/openvinotoolkit/anomalib/pull/2235
- Refactor Lightning's `trainer.model` to `trainer.lightning_module` by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2255
- Revert "Update open-clip-torch requirement from <2.26.1,>=2.23.0 to >=2.23.0,<2.26.2" by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2270
- Update ruff configuration by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2269
- Update timm requirement by @dependabot in https://github.com/openvinotoolkit/anomalib/pull/2274
- Refactor BaseThreshold to Threshold by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2278
- πŸ”¨ Lint: Update Ruff Config - Add Missing Copyright Headers by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2281
- Reduce rich methods by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/2283
- Enable Ruff Rules: PLW1514 and PLR6201 by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2284
- Update nncf export by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/2286
- Linting: Enable `PLR6301`, # could be a function, class method or static method by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2288
- 🐞 Update `setuptools` requirement for PEP 660 support by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2320
- πŸ”¨ Update the issue templates by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2363
- 🐞 Defer OpenVINO import to avoid unnecessary warnings by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2385
- πŸ”¨ Make single GPU benchmarking 5x more efficient by @mzweilin in https://github.com/openvinotoolkit/anomalib/pull/2390
- 🐞 Export the flattened config in benchmark CSV. by @mzweilin in https://github.com/openvinotoolkit/anomalib/pull/2391
- πŸ”¨ Export experiment duration in seconds in CSV. by @mzweilin in https://github.com/openvinotoolkit/anomalib/pull/2392
- 🐞 Fix installation package issues by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2395

### Deprecated

- πŸ”¨ Deprecate try import and replace it with Lightning's package_available by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/2373

### Fixed

- Add check before loading metrics data from checkpoint by @blaz-r in https://github.com/openvinotoolkit/anomalib/pull/2323
- Fix transforms for draem, dsr and rkde by @blaz-r in https://github.com/openvinotoolkit/anomalib/pull/2324
- Makes batch size dynamic by @Marcus1506 in https://github.com/openvinotoolkit/anomalib/pull/2339

## New Contributors

- @Marcus1506 made their first contribution in https://github.com/openvinotoolkit/anomalib/pull/2339

**Full Changelog**: https://github.com/openvinotoolkit/anomalib/compare/v1.1.1...v1.2.0

### New Contributors

**Full Changelog**:

## [v1.1.1]
Expand Down
11 changes: 11 additions & 0 deletions configs/data/datumaro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class_path: anomalib.data.Datumaro
init_args:
root: "datasets/datumaro"
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
test_split_mode: FROM_DIR
test_split_ratio: 0.2
val_split_mode: FROM_TEST
val_split_ratio: 0.5
seed: null
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 16 additions & 14 deletions docs/source/markdown/get_started/anomalib.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The installer can be installed using the following commands:
:::{tab-item} API
:sync: label-1

```{literalinclude} ../../snippets/install/pypi.txt
```{literalinclude} /snippets/install/pypi.txt
:language: bash
```

Expand All @@ -26,7 +26,7 @@ The installer can be installed using the following commands:
:::{tab-item} Source
:sync: label-2

```{literalinclude} ../../snippets/install/source.txt
```{literalinclude} /snippets/install/source.txt
:language: bash
```

Expand All @@ -42,22 +42,22 @@ The next section demonstrates how to install the full package using the CLI inst
:::::{dropdown} Installing the Full Package
After installing anomalib, you can install the full package using the following commands:

```{literalinclude} ../../snippets/install/anomalib_help.txt
```{literalinclude} /snippets/install/anomalib_help.txt
:language: bash
```

As can be seen above, the only available sub-command is `install` at the moment.
The `install` sub-command has options to install either the full package or the
specific components of the package.

```{literalinclude} ../../snippets/install/anomalib_install_help.txt
```{literalinclude} /snippets/install/anomalib_install_help.txt
:language: bash
```

By default the `install` sub-command installs the full package. If you want to
install only the specific components of the package, you can use the `--option` flag.

```{literalinclude} ../../snippets/install/anomalib_install.txt
```{literalinclude} /snippets/install/anomalib_install.txt
:language: bash
```

Expand All @@ -66,21 +66,23 @@ After following these steps, your environment will be ready to use anomalib!

## {octicon}`mortar-board` Training

Anomalib supports both API and CLI-based training. The API is more flexible and allows for more customization, while the CLI training utilizes command line interfaces, and might be easier for those who would like to use anomalib off-the-shelf.
Anomalib supports both API and CLI-based training. The API is more flexible
and allows for more customization, while the CLI training utilizes command line
interfaces, and might be easier for those who would like to use anomalib off-the-shelf.

::::{tab-set}

:::{tab-item} API

```{literalinclude} ../../snippets/train/api/default.txt
```{literalinclude} /snippets/train/api/default.txt
:language: python
```

:::

:::{tab-item} CLI

```{literalinclude} ../../snippets/train/cli/default.txt
```{literalinclude} /snippets/train/cli/default.txt
:language: bash
```

Expand All @@ -100,7 +102,7 @@ Anomalib includes multiple inferencing scripts, including Torch, Lightning, Grad
:::{tab-item} API
:sync: label-1

```{literalinclude} ../../snippets/inference/api/lightning.txt
```{literalinclude} /snippets/inference/api/lightning.txt
:language: python
```

Expand All @@ -109,7 +111,7 @@ Anomalib includes multiple inferencing scripts, including Torch, Lightning, Grad
:::{tab-item} CLI
:sync: label-2

```{literalinclude} ../../snippets/inference/cli/lightning.txt
```{literalinclude} /snippets/inference/cli/lightning.txt
:language: bash
```

Expand Down Expand Up @@ -201,15 +203,15 @@ Anomalib supports hyper-parameter optimization using [wandb](https://wandb.ai/)

:::{tab-item} CLI

```{literalinclude} ../../snippets/pipelines/hpo/cli.txt
```{literalinclude} /snippets/pipelines/hpo/cli.txt
:language: bash
```

:::

:::{tab-item} API

```{literalinclude} ../../snippets/pipelines/hpo/api.txt
```{literalinclude} /snippets/pipelines/hpo/api.txt
:language: bash
```

Expand All @@ -233,15 +235,15 @@ To run a training experiment with experiment tracking, you will need the followi

By using the configuration file above, you can run the experiment with the following command:

```{literalinclude} ../../snippets/logging/cli.txt
```{literalinclude} /snippets/logging/cli.txt
:language: bash
```

:::

:::{tab-item} API

```{literalinclude} ../../snippets/logging/api.txt
```{literalinclude} /snippets/logging/api.txt
:language: bash
```

Expand Down
Loading
Loading