From eb1fdc3ab621385681ea1e14c7d5bbf6ca694171 Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 22 Mar 2022 02:52:54 +0100 Subject: [PATCH] release 0.7.3 * fix CI latest --- .github/workflows/ci_integrate.yml | 17 +++++++++++++++-- .github/workflows/ci_test-conda.yml | 2 ++ .github/workflows/ci_test-full.yml | 17 +++++++++++++++-- CHANGELOG.md | 22 +--------------------- torchmetrics/__about__.py | 2 +- 5 files changed, 34 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci_integrate.yml b/.github/workflows/ci_integrate.yml index 33052b9163f..9f745709f87 100644 --- a/.github/workflows/ci_integrate.yml +++ b/.github/workflows/ci_integrate.yml @@ -12,6 +12,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }} +defaults: + run: + shell: bash + jobs: pytest: @@ -65,17 +69,26 @@ jobs: key: ${{ runner.os }}-py${{ matrix.python-version }}-td${{ steps.times.outputs.period }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: ${{ runner.os }}-py${{ matrix.python-version }}-td${{ steps.times.outputs.period }}-pip- - - name: Install dependencies + - name: Install base dependencies run: | pip --version pip install --requirement requirements.txt --upgrade --find-links $PYTORCH_URL + + - name: Freeze Numpy (hotfix) + if: matrix.requires == 'latest' + run: | + pip install -q "numpy==1.20.0" # temp fix for cypesq + # import of PILLOW_VERSION which they recently removed in v9.0 in favor of __version__ + pip install -q "Pillow<9.0" # It messes with torchvision + + - name: Install all dependencies + run: | python ./requirements/adjust-versions.py requirements.txt python ./requirements/adjust-versions.py requirements/image.txt pip install --requirement requirements/devel.txt --upgrade --find-links $PYTORCH_URL pip install -r requirements/integrate.txt --quiet --upgrade-strategy only-if-needed --find-links $PYTORCH_URL pip uninstall -y torchmetrics pip list - shell: bash - name: HF cache uses: actions/cache@v2 diff --git a/.github/workflows/ci_test-conda.yml b/.github/workflows/ci_test-conda.yml index bbe7bf2e2aa..8c8b908802d 100644 --- a/.github/workflows/ci_test-conda.yml +++ b/.github/workflows/ci_test-conda.yml @@ -85,6 +85,8 @@ jobs: python ./requirements/adjust-versions.py requirements.txt python ./.github/prune-packages.py requirements/image.txt torchvision pip install -q "numpy==1.20.0" # try to fix cocotools for PT 1.4 & 1.9 + # import of PILLOW_VERSION which they recently removed in v9.0 in favor of __version__ + pip install -q "Pillow<9.0" # It messes with torchvision pip install --requirement requirements.txt --quiet pip install --requirement requirements/devel.txt --quiet pip list diff --git a/.github/workflows/ci_test-full.yml b/.github/workflows/ci_test-full.yml index 4a96c6f1f90..9bf39bdcb6d 100644 --- a/.github/workflows/ci_test-full.yml +++ b/.github/workflows/ci_test-full.yml @@ -12,6 +12,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }} +defaults: + run: + shell: bash + jobs: pytest: @@ -80,15 +84,24 @@ jobs: key: ${{ runner.os }}-py${{ matrix.python-version }}-td${{ steps.times.outputs.period }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: ${{ runner.os }}-py${{ matrix.python-version }}-td${{ steps.times.outputs.period }}-pip- - - name: Install dependencies + - name: Install base dependencies run: | pip --version pip install --requirement requirements.txt --upgrade --find-links $PYTORCH_URL + + - name: Freeze Numpy (hotfix) + if: matrix.requires == 'latest' + run: | + pip install -q "numpy==1.20.0" # temp fix for cypesq + # import of PILLOW_VERSION which they recently removed in v9.0 in favor of __version__ + pip install -q "Pillow<9.0" # It messes with torchvision + + - name: Install all dependencies + run: | python ./requirements/adjust-versions.py requirements.txt python ./requirements/adjust-versions.py requirements/image.txt pip install --requirement requirements/devel.txt --upgrade --find-links $PYTORCH_URL pip list - shell: bash - name: HF cache uses: actions/cache@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fb2de00da5..607655d47b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,34 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 **Note: we move fast, but still we preserve 0.1 version (one feature release) back compatibility.** -## [UnReleased] - 2022-MM-DD - -### Added - - -### Changed - - -### Deprecated - - -### Removed - +## [0.7.3] - 2022-03-23 ### Fixed - Fixed unsafe log operation in `TweedieDeviace` for power=1 ([#847](https://github.com/PyTorchLightning/metrics/pull/847)) - - - Fixed bug in MAP metric related to either no ground truth or no predictions ([#884](https://github.com/PyTorchLightning/metrics/pull/884)) - - - Fixed `ConfusionMatrix`, `AUROC` and `AveragePrecision` on GPU when running in deterministic mode ([#900](https://github.com/PyTorchLightning/metrics/pull/900)) - - - Fixed NaN or Inf results returned by `signal_distortion_ratio` ([#899](https://github.com/PyTorchLightning/metrics/pull/899)) - - - Fixed memory leak when using `update` method with tensor where `requires_grad=True` ([#902](https://github.com/PyTorchLightning/metrics/pull/902)) diff --git a/torchmetrics/__about__.py b/torchmetrics/__about__.py index 8bbdf1ee56b..1f8c492a90a 100644 --- a/torchmetrics/__about__.py +++ b/torchmetrics/__about__.py @@ -1,4 +1,4 @@ -__version__ = "0.7.2" +__version__ = "0.7.3" __author__ = "PyTorchLightning et al." __author_email__ = "name@pytorchlightning.ai" __license__ = "Apache-2.0"