Skip to content

Commit

Permalink
Merge branch 'openvinotoolkit:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
alexriedel1 authored Nov 8, 2024
2 parents 7362cdc + bcc0b43 commit d13a0c0
Show file tree
Hide file tree
Showing 221 changed files with 15,714 additions and 2,023 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/epic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 🎯 Epic
description: A large body of work that can be broken down into smaller stories
title: "🎯 [EPIC] "
labels: ["epic"]
assignees: []
body:
- type: markdown
attributes:
value: "## 🎯 Epic Description"
- type: textarea
id: description
attributes:
label: Describe the epic
description: Provide a clear and concise description of what this epic encompasses
validations:
required: true
- type: textarea
id: goals
attributes:
label: Goals
description: What are the main goals of this epic?
validations:
required: true
- type: textarea
id: tasks
attributes:
label: Tasks
description: Break down the epic into smaller tasks. Add or remove tasks as needed.
value: |
- [ ] Task 1:
- [ ] Task 2:
- [ ] Task 3:
- [ ] Task 4:
- [ ] Task 5:
validations:
required: true
- type: markdown
attributes:
value: "Remember to create separate issues for each task and link them to this epic."
74 changes: 52 additions & 22 deletions .github/ISSUE_TEMPLATE/task.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,65 @@
name: Tasks
description: This is used to capture tasks being implemented/to implement such as features, maintenance, refactor, etc.
title: "[Task]: "
labels: ["Task"]
name: 📋 Task
description: A specific piece of work to be completed
title: "📋 [TASK] "
labels: ["task"]
assignees: []
body:
- type: markdown
attributes:
value: |
We encourage our users to submit feature requests in our [Discussion forum](https://github.com/openvinotoolkit/anomalib/discussions/categories/ideas-feature-requests). You can use this template for consistency.
value: "## 📋 Task Description"
- type: textarea
id: motivation
id: description
attributes:
label: What is the motivation for this task?
description: A clear and concise description of what the problem is.
placeholder: |
1. I'm always frustrated when [...]. It would be better if we could [...]
2. I would like to have [...] model/dataset to be supported in Anomalib.
label: Describe the task
description: Provide a clear and concise description of the task to be completed
validations:
required: true
- type: textarea
id: solution
id: acceptance-criteria
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen. Add screenshots or code-blocks if necessary.
placeholder: |
I would like to have [...] to do this we would need to [...]
Here is what I would like to see [...]
label: Acceptance Criteria
description: List the specific criteria that must be met for this task to be considered complete
validations:
required: true
- type: dropdown
id: priority
attributes:
label: Priority
options:
- Low
- Medium
- High
validations:
required: true
- type: input
id: epic-link
attributes:
label: Related Epic
description: If this task is part of an epic, provide the epic's issue number (e.g., #123)
validations:
required: false
- type: input
id: estimated-time
attributes:
label: Estimated Time
description: Provide an estimate of how long this task will take (e.g., 2h, 1d)
validations:
required: false
- type: dropdown
id: status
attributes:
label: Current Status
options:
- Not Started
- In Progress
- Blocked
- Ready for Review
validations:
required: true
- type: textarea
id: additional-context
id: additional-info
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
label: Additional Information
description: Any other relevant details or context for this task
validations:
required: false
69 changes: 69 additions & 0 deletions .github/ISSUE_TEMPLATE/user_story.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: 📖 User Story
description: A small, self-contained unit of development work describing a feature from an end-user perspective
title: "📖 [STORY] "
labels: ["user-story"]
assignees: []
body:
- type: markdown
attributes:
value: "## 📖 User Story Description"
- type: textarea
id: user-story
attributes:
label: User Story
description: As a [type of user], I want [an action] so that [a benefit/a value]
placeholder: As a computer vision researcher, I want to implement a new anomaly detection algorithm so that I can improve detection accuracy for industrial defect scenarios.
validations:
required: true
- type: textarea
id: acceptance-criteria
attributes:
label: Acceptance Criteria
description: List the acceptance criteria for this user story
placeholder: |
1. The new algorithm is implemented and integrated into the anomalib framework
2. Unit tests are written and pass for the new implementation
3. Performance benchmarks show improvement over existing methods on specified datasets
4. Documentation is updated to include usage instructions and theory behind the new algorithm
5. An example notebook is provided demonstrating the algorithm's application
validations:
required: true
- type: input
id: story-points
attributes:
label: Story Points
description: Estimate the complexity of this story (e.g., 1, 2, 3, 5, 8, 13)
validations:
required: true
- type: input
id: epic-link
attributes:
label: Related Epic
description: If this story is part of an epic, provide the epic's issue number (e.g., #123)
validations:
required: false
- type: dropdown
id: model-category
attributes:
label: Category
description: Select the category this story primarily relates to
options:
- Data
- Anomaly Detection Algorithms
- Pre-processing
- Post-processing
- Evaluation Metrics
- Visualization
- Performance Optimization
- API/Interface
- Documentation
- Others
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Add any other context, background, or relevant research papers about the user story here
validations:
required: false
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:

# Ruff version.
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.5.1"
rev: "v0.6.2"
hooks:
# Run the linter.
- id: ruff
Expand All @@ -27,7 +27,7 @@ repos:

# python static type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.1"
rev: "v1.11.2"
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-setuptools]
Expand All @@ -43,7 +43,7 @@ repos:

# notebooks.
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.5
rev: 1.8.7
hooks:
- id: nbqa-ruff
# Ignore unsorted imports. This is because jupyter notebooks can import
Expand Down
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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
15 changes: 15 additions & 0 deletions configs/data/datumaro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class_path: anomalib.data.Datumaro
init_args:
root: "datasets/datumaro"
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
image_size: null
transform: null
train_transform: null
eval_transform: null
test_split_mode: FROM_DIR
test_split_ratio: 0.2
val_split_mode: FROM_TEST
val_split_ratio: 0.5
seed: null
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
"""

# Copyright (C) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import sys
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d13a0c0

Please sign in to comment.