Skip to content

Commit 87d7b54

Browse files
committed
2 parents ad3136c + 04630f0 commit 87d7b54

File tree

100 files changed

+584
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+584
-537
lines changed

.ci/Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG HTTP_PROXY
55
ARG HTTPS_PROXY
66
ARG NO_PROXY
77

8-
FROM nvidia/cuda:11.4.3-devel-ubuntu20.04 AS python_base_cuda11.4
8+
FROM nvidia/cuda:12.3.2-devel-ubuntu20.04 AS python_base_cuda
99
LABEL maintainer="Anomalib Development Team"
1010

1111
# Setup proxies
@@ -59,17 +59,11 @@ RUN conda install python=3.10
5959
## Anomalib Development Env
6060
#########################################################
6161

62-
FROM python_base_cuda11.4 as anomalib_development_env
62+
FROM python_base_cuda as anomalib_development_env
6363

6464
# Install all anomalib requirements
65-
COPY ./requirements/installer.txt /tmp/anomalib/requirements/installer.txt
66-
RUN pip install --no-cache-dir -r /tmp/anomalib/requirements/installer.txt
65+
COPY ./pyproject.toml /tmp/anomalib/pyproject.toml
66+
RUN pip install --no-cache-dir .[full]
6767

68-
COPY ./requirements/openvino.txt /tmp/anomalib/requirements/openvino.txt
69-
RUN pip install --no-cache-dir -r /tmp/anomalib/requirements/openvino.txt
70-
71-
# Install other requirements related to development
72-
COPY ./requirements/dev.txt /tmp/anomalib/requirements/dev.txt
73-
RUN pip install --no-cache-dir -r /tmp/anomalib/requirements/dev.txt
7468

7569
WORKDIR /home/user

.github/CODEOWNERS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
# CI/CD
99
/.ci/ @ashwinvaidya17
10-
/.devcontainer @ashwinvaidya17 @yunchu
11-
/.github @ashwinvaidya17 @yunchu
10+
/.devcontainer @ashwinvaidya17
11+
/.github @ashwinvaidya17
1212
/.dockerignore @ashwinvaidya17
1313

1414
# Docs
@@ -19,7 +19,7 @@
1919
/notebooks/100_datamodules @djdameln
2020
/notebooks/200_models @samet-akcay
2121
/notebooks/300_benchmarking @ashwinvaidya17
22-
/notebooks/400_openvino @samet-akcay @paularamo
22+
/notebooks/400_openvino @samet-akcay
2323
/notebooks/500_use_cases @paularamo
2424
/notebooks/README.md @samet-akcay
2525

@@ -71,11 +71,11 @@
7171
/tests/ @samet-akcay @ashwinvaidya17
7272

7373
# Misc
74-
/pyproject.toml @samet-akcay @yunchu
74+
/pyproject.toml @samet-akcay
7575
/README.md @samet-akcay @ashwinvaidya17 @djdameln
76-
/setup.py @samet-akcay @yunchu
76+
/setup.py @samet-akcay
7777
/third-party-programs.txt @samet-akcay @ashwinvaidya17 @djdameln
78-
/tox.ini @samet-akcay @yunchu
78+
/tox.ini @samet-akcay
7979

8080
# Tools
8181
/tools/benchmarking @ashwinvaidya17

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: docker
9+
directory: /.ci
10+
schedule:
11+
interval: weekly
12+
13+
- package-ecosystem: github-actions
14+
directory: /
15+
schedule:
16+
interval: weekly
17+
18+
- package-ecosystem: pip
19+
directory: /
20+
schedule:
21+
interval: weekly

.github/labeler.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Before you submit your pull request, please make sure you have completed the fol
2222
- [ ] 📚 I have made the necessary updates to the documentation (if applicable).
2323
- [ ] 🧪 I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).
2424

25-
For more information about code review checklists, see the [Code Review Checklist](../docs/source/markdown/guides/developer/code_review_checklist.md).
25+
For more information about code review checklists, see the [Code Review Checklist](https://github.com/openvinotoolkit/anomalib/blob/main/docs/source/markdown/guides/developer/code_review_checklist.md).

.github/workflows/code_scan.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
runs-on: ubuntu-20.04
1212
steps:
1313
- name: CHECKOUT REPOSITORY
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
- name: Set up Python
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: "3.10"
1919
- name: Install dependencies
2020
run: python -m pip install tox
2121
- name: Bandit Scanning
2222
run: tox -e bandit-scan
2323
- name: UPLOAD BANDIT REPORT
24-
uses: actions/upload-artifact@v3
24+
uses: actions/upload-artifact@v4
2525
with:
2626
name: bandit-report
2727
path: .tox/bandit-report.txt
@@ -31,9 +31,9 @@ jobs:
3131
runs-on: ubuntu-20.04
3232
steps:
3333
- name: Checkout code
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
- name: Set up Python
36-
uses: actions/setup-python@v4
36+
uses: actions/setup-python@v5
3737
with:
3838
python-version: "3.10"
3939
- name: Install dependencies
@@ -43,7 +43,7 @@ jobs:
4343
TRIVY_DOWNLOAD_URL: ${{ vars.TRIVY_DOWNLOAD_URL }}
4444
run: tox -vv -e trivy-scan
4545
- name: Upload Trivy results artifact
46-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4
4747
with:
4848
name: trivy-results
4949
path: |

.github/workflows/labeler.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@ jobs:
1313
if: github.ref == 'refs/heads/main'
1414
steps:
1515
- name: CHECKOUT REPOSITORY
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717
- name: Install Tox
1818
run: pip install tox
1919
- name: Coverage
2020
run: tox -e nightly
2121
- name: Upload coverage result
22-
uses: actions/upload-artifact@v2
22+
uses: actions/upload-artifact@v4
2323
with:
2424
name: coverage
2525
path: .tox/coverage.xml
26+
md-dead-link-check:
27+
runs-on: ubuntu-22.04
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: AlexanderDokuchaev/[email protected]
31+
with:
32+
config: pyproject.toml

.github/workflows/pre_merge.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
runs-on: [self-hosted, linux, x64, anomalib]
2222
steps:
2323
- name: CHECKOUT REPOSITORY
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
- name: Set up Python
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: "3.10"
2929
- name: Install Tox
@@ -42,9 +42,9 @@ jobs:
4242
tox-env: "py310"
4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646
- name: Install Python
47-
uses: actions/setup-python@v4
47+
uses: actions/setup-python@v5
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
- name: Install Tox
@@ -75,3 +75,11 @@ jobs:
7575
else
7676
./codecov -t "${CODECOV_TOKEN}" --sha $COMMIT_ID -U $HTTP_PROXY -f .tox/coverage.xml
7777
fi
78+
79+
md-dead-link-check:
80+
runs-on: ubuntu-22.04
81+
steps:
82+
- uses: actions/checkout@v4
83+
- uses: AlexanderDokuchaev/[email protected]
84+
with:
85+
config: pyproject.toml

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,24 @@ jobs:
88
deploy:
99
runs-on: ubuntu-20.04
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.10"
1315
- name: Install dependencies
1416
run: |
1517
python -m pip install --upgrade pip
1618
pip install setuptools wheel twine
1719
1820
- name: Import GPG Key
1921
run: |
20-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import
22+
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch --yes --no-tty
2123
2224
- name: Build and sign distribution
2325
run: |
2426
python setup.py sdist bdist_wheel
25-
gpg --detach-sign -a dist/*.tar.gz
26-
gpg --detach-sign -a dist/*.whl
27+
gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.tar.gz
28+
gpg --batch --yes --no-tty --pinentry-mode loopback --detach-sign -a dist/*.whl
2729
2830
- name: Upload to PyPI
2931
run: twine upload dist/*

.github/workflows/upload_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Download artifact
13-
uses: actions/download-artifact@v3
13+
uses: actions/download-artifact@v4
1414
with:
1515
name: ${{ github.event.workflow_run.artifact_url }}
1616
path: coverage

.readthedocs.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ formats:
2929
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
3030
python:
3131
install:
32-
- requirements: docs/requirements.txt
33-
- requirements: requirements/core.txt
34-
- requirements: requirements/loggers.txt
35-
- requirements: requirements/notebooks.txt
36-
- requirements: requirements/openvino.txt
3732
- method: pip
3833
path: .
34+
extra_requirements:
35+
- dev

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,49 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1414

1515
### Fixed
1616

17+
### New Contributors
18+
19+
**Full Changelog**:
20+
21+
## [v1.0.1] - Unreleased
22+
23+
### Added
24+
25+
- Add requirements into `pyproject.toml` & Refactor anomalib install `get_requirements` by @harimkang in https://github.com/openvinotoolkit/anomalib/pull/1808
26+
27+
### Changed
28+
29+
- 📚 Update the getting started notebook by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/1800
30+
- 🔨Refactored-assert-statements-with-explicit-error-handling by @sahusiddharth in https://github.com/openvinotoolkit/anomalib/pull/1825
31+
- 🔨Made-imagenette-path-configurable-in-config by @sahusiddharth in https://github.com/openvinotoolkit/anomalib/pull/1833
32+
- 🛠️ Update changelog by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/1842
33+
- Remove input_size argument from models #1827 by @Shakib-IO in https://github.com/openvinotoolkit/anomalib/pull/1856
34+
- 🚀 Allow validation splits from training data by @davnn in https://github.com/openvinotoolkit/anomalib/pull/1865
35+
- 🛠️ Ensure images are loaded in RGB format by @davnn in https://github.com/openvinotoolkit/anomalib/pull/1866
36+
- 🔨 Update OpenVINO predict to handle normalization inside the method. by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/1875
37+
- ✨ Upgrade TorchMetrics by @ashwinvaidya17 in https://github.com/openvinotoolkit/anomalib/pull/1879
38+
- Address minor WinCLIP issues by @djdameln in https://github.com/openvinotoolkit/anomalib/pull/1889
39+
40+
### Deprecated
41+
42+
### Fixed
43+
44+
- 🐞 Fix single-frame video input size by [@djdameln](https://github.com/djdameln) (<https://github.com/openvinotoolkit/anomalib/pull/1910>)
45+
- 🐞 Fix dobot notebook by @djdameln in https://github.com/openvinotoolkit/anomalib/pull/1852
46+
- 🐞 Fix CLI config and update the docs. by @samet-akcay in https://github.com/openvinotoolkit/anomalib/pull/1886
47+
- 🐞 Fix the error if the device in masks_to_boxes is not both CPU and CUDA by @danylo-boiko in https://github.com/openvinotoolkit/anomalib/pull/1839
48+
- 🐞 Hot-fix wrong requirement for setup.py by @harimkang in https://github.com/openvinotoolkit/anomalib/pull/1823
49+
- 🐞 Use right interpolation method in WinCLIP resize (<https://github.com/openvinotoolkit/anomalib/pull/1889>)
1750
- 🐞 Fix the error if the device in masks_to_boxes is not both CPU and CUDA by @danylo-boiko in https://github.com/openvinotoolkit/anomalib/pull/1839
1851

52+
### New Contributors
53+
54+
- @sahusiddharth made their first contribution in https://github.com/openvinotoolkit/anomalib/pull/1825
55+
- @Shakib-IO made their first contribution in https://github.com/openvinotoolkit/anomalib/pull/1856
56+
- @davnn made their first contribution in https://github.com/openvinotoolkit/anomalib/pull/1866
57+
58+
**Full Changelog**: https://github.com/openvinotoolkit/anomalib/compare/v1.0.0...v1.0.1
59+
1960
## [v1.0.0] - 2024-02-29
2061

2162
### Added

0 commit comments

Comments
 (0)