Skip to content
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

monai generative: refactor autoencoderkl #7552

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
2fc0126
wholeBody_ct_segmentation failed to be download (#7280)
KumoLiu Dec 4, 2023
88f8dd2
update the Python version requirements for transformers (#7275)
KumoLiu Dec 5, 2023
d5585c3
7263 add diffusion loss (#7272)
kvttt Dec 5, 2023
8212458
Fix swinunetrv2 2D bug (#7302)
heyufan1995 Dec 8, 2023
b1c8b42
Fix `RuntimeError` in `DataAnalyzer` (#7310)
KumoLiu Dec 12, 2023
6126a6e
Support specified filenames in `Saveimage` (#7318)
KumoLiu Dec 14, 2023
4c546b3
Fix typo (#7321)
KumoLiu Dec 15, 2023
01a0ee1
fix optimizer pararmeter issue (#7322)
binliunls Dec 15, 2023
90d2acb
Fix `lazy` ignored in `SpatialPadd` (#7316)
KumoLiu Dec 18, 2023
f5327ad
Update openslide-python version (#7344)
KumoLiu Dec 28, 2023
b3d7a48
Upgrade the version of `transformers` (#7343)
KumoLiu Dec 29, 2023
02973f0
Bump github/codeql-action from 2 to 3 (#7354)
dependabot[bot] Jan 2, 2024
38ac573
Bump actions/upload-artifact from 3 to 4 (#7350)
dependabot[bot] Jan 2, 2024
454f89c
Bump actions/setup-python from 4 to 5 (#7351)
dependabot[bot] Jan 2, 2024
db6e81d
Bump actions/download-artifact from 3 to 4 (#7352)
dependabot[bot] Jan 2, 2024
8fa6931
Bump peter-evans/slash-command-dispatch from 3.0.1 to 3.0.2 (#7353)
dependabot[bot] Jan 3, 2024
445d750
Give more useful exception when batch is considered during matrix mul…
KumoLiu Jan 8, 2024
d7137cf
Fix incorrectly size compute in auto3dseg analyzer (#7374)
KumoLiu Jan 9, 2024
e1ffa7e
7380 mention demo in bending energy and diffusion docstrings (#7381)
kvttt Jan 10, 2024
25f1901
Pin gdown version to v4.6.3 (#7384)
KumoLiu Jan 12, 2024
78295c7
Fix Premerge (#7397)
KumoLiu Jan 18, 2024
80be1c3
Track applied operations in image filter (#7395)
vlaminckaxel Jan 18, 2024
facf176
Add `compile` support in `SupervisedTrainer` and `SupervisedEvaluator…
KumoLiu Jan 19, 2024
abe2e31
Fix CUDA_VISIBLE_DEVICES setting ignored (#7408)
KumoLiu Jan 22, 2024
6c9e49e
Fix Incorrect updated affine in `NrrdReader` and update docstring in …
KumoLiu Jan 25, 2024
df4cf92
Ignore E704 after update black (#7422)
KumoLiu Jan 30, 2024
7086b36
Merge branch 'dev' into gen-ai-dev
marksgraham Jan 30, 2024
61a9f73
Merge branch 'gen-ai-dev' of github.com:marksgraham/MONAI into gen-ai…
marksgraham Jan 30, 2024
81d34c6
Merge branch 'dev' into gen-ai-dev
marksgraham Jan 30, 2024
cd36c1c
update `rm -rf /opt/hostedtoolcache` avoid change the python version …
KumoLiu Feb 1, 2024
6def75e
Bump peter-evans/slash-command-dispatch from 3.0.2 to 4.0.0 (#7428)
dependabot[bot] Feb 1, 2024
ec01686
Merge branch 'Project-MONAI:gen-ai-dev' into gen-ai-dev
marksgraham Feb 1, 2024
6ea3e39
Bump peter-evans/create-or-update-comment from 3 to 4 (#7429)
dependabot[bot] Feb 2, 2024
5301443
Bump actions/cache from 3 to 4 (#7430)
dependabot[bot] Feb 2, 2024
aa4f578
Bump codecov/codecov-action from 3 to 4 (#7431)
dependabot[bot] Feb 2, 2024
33afaef
Update tensorboard version to fix deadlock (#7435)
KumoLiu Feb 2, 2024
718e4be
auto updates (#7439)
monai-bot Feb 5, 2024
ec2cc83
Instantiation mode `"partial"` to `"callable"`. Return the `_target_`…
ibro45 Feb 6, 2024
c27cc98
Add support for mlflow experiment name in auto3dseg (#7442)
drbeh Feb 6, 2024
ff43028
Update gdown version (#7448)
KumoLiu Feb 7, 2024
a8080fc
Skip "test_gaussian_filter" as a workaround for blossom killed (#7474)
KumoLiu Feb 20, 2024
50f9aea
auto updates (#7463)
monai-bot Feb 20, 2024
df37a22
Skip "test_resize" as a workaround for blossom killed (#7484)
KumoLiu Feb 21, 2024
1b93988
Fix Python 3.12 import AttributeError (#7482)
KumoLiu Feb 21, 2024
f4103c5
Update test_nnunetv2runner (#7483)
KumoLiu Feb 22, 2024
9c77a04
Fix github resource issue when build latest docker (#7450)
KumoLiu Feb 23, 2024
f6f9e81
Use int16 instead of int8 in `LabelStats` (#7489)
KumoLiu Feb 23, 2024
20512d3
auto updates (#7495)
monai-bot Feb 26, 2024
7cfa2c9
Add sample_std parameter to RandGaussianNoise. (#7492)
bakert1 Feb 26, 2024
9830525
Add __repr__ and __str__ to Metrics baseclass (#7487)
MathijsdeBoer Feb 28, 2024
02c7f53
Bump al-cheb/configure-pagefile-action from 1.3 to 1.4 (#7510)
dependabot[bot] Mar 1, 2024
e9e2738
Add arm support (#7500)
KumoLiu Mar 3, 2024
95f69de
Fix error in "test_bundle_trt_export" (#7524)
KumoLiu Mar 10, 2024
6b7568d
Fix typo in the PerceptualNetworkType Enum (#7548)
SomeUserName1 Mar 15, 2024
3650e45
Attempting to remove _Downsample block
marksgraham Mar 15, 2024
ec63e06
Update to use `log_sigmoid` in `FocalLoss` (#7534)
KumoLiu Mar 18, 2024
4f1306b
Adds missing import, adds temporary tests for loading in existing aut…
marksgraham Mar 20, 2024
de26f1b
Undo accidental changes to num_channels
marksgraham Mar 20, 2024
7e7de37
Adds util for loading old checkpoints, removes downsampling block
marksgraham Mar 21, 2024
35c93fd
Update integration_segmentation_3d result for PyTorch2403 (#7551)
KumoLiu Mar 22, 2024
c649934
Add Barlow Twins loss for representation learning (#7530)
Lucas-rbnt Mar 22, 2024
c3a7383
Stein's Unbiased Risk Estimator (SURE) loss and Conjugate Gradient (#…
cxlcl Mar 22, 2024
c86e790
auto updates (#7577)
monai-bot Mar 25, 2024
90b11ad
Move to new attention block, remove flash attention
marksgraham Mar 25, 2024
1cc52b6
Make use of casting class for interpolation
marksgraham Mar 25, 2024
a2c66dd
Remove xformers import
marksgraham Mar 25, 2024
1fc2645
Stick to existing resblock, cannot move to Monai residualunit due to …
marksgraham Mar 25, 2024
97678fa
Remove nested error propagation on `ConfigComponent` instantiate (#7569)
surajpaib Mar 26, 2024
e5bebfc
2872 implementation of mixup, cutmix and cutout (#7198)
juampatronics Mar 26, 2024
2716b6a
Remove device count cache when import monai (#7581)
KumoLiu Mar 27, 2024
c9fed96
Fixing gradient in sincos positional encoding in monai/networks/block…
Lucas-rbnt Mar 27, 2024
ba3c72c
Fix inconsistent alpha parameter/docs for RandGibbsNoise/RandGibbsNoi…
johnzielke Mar 27, 2024
7c0b10e
Fix bundle_root for NNIGen (#7586)
mingxin-zheng Mar 27, 2024
2d463a7
Auto3DSeg algo_template hash update (#7589)
monai-bot Mar 27, 2024
15d2abf
Utilizing subprocess for nnUNet training. (#7576)
KumoLiu Apr 1, 2024
ec4d946
typo fix (#7595)
scalyvladimir Apr 1, 2024
a7c2589
auto updates (#7599)
monai-bot Apr 1, 2024
c885100
7540 change bundle workflow args (#7549)
yiheng-wang-nv Apr 1, 2024
264b9e4
Add "properties_path" in BundleWorkflow (#7542)
KumoLiu Apr 1, 2024
bbaaf4c
Auto3DSeg algo_template hash update (#7603)
monai-bot Apr 1, 2024
5ec7305
ENH: generate_label_classes_crop_centers: warn only if ratio of missi…
lorinczszabolcs Apr 2, 2024
9085d96
Removes backwards compatibility tests that only run locally
marksgraham Apr 3, 2024
c9f3dc0
DCO Remediation Commit for Mark Graham <[email protected]>
marksgraham Apr 3, 2024
5b6518b
DCO
marksgraham Apr 3, 2024
0dc9bf4
optional imports for einops
marksgraham Apr 3, 2024
12f056e
optional imports for einops
marksgraham Apr 3, 2024
3893070
optional imports for einops
marksgraham Apr 3, 2024
af5b751
optional imports for einops
marksgraham Apr 3, 2024
763347d
Update base image to 2403 (#7600)
KumoLiu Apr 3, 2024
195d7dd
simplification of the sincos positional encoding in patchembedding.py…
Lucas-rbnt Apr 4, 2024
625967c
harmonization and clarification of dice losses variants docs and asso…
Lucas-rbnt Apr 5, 2024
c0b9cc0
Implementation of intensity clipping transform: bot hard and soft app…
Lucas-rbnt Apr 5, 2024
87152d1
Fix typo in `SSIMMetric` (#7612)
KumoLiu Apr 8, 2024
e9a5bfe
auto updates (#7614)
monai-bot Apr 10, 2024
54a6991
Fix test error in `test_soft_clipping_one_sided_high` (#7624)
KumoLiu Apr 11, 2024
3856c45
Fix deprecated warning in ruff (#7625)
KumoLiu Apr 11, 2024
da3ecdd
7601 fix mlflow artifacts (#7604)
binliunls Apr 12, 2024
1268488
Uninstall opencv included in base image (#7626)
KumoLiu Apr 12, 2024
9e2904a
Add checks for num_fold and fail early if wrong (#7634)
mingxin-zheng Apr 12, 2024
0497448
Auto3DSeg algo_template hash update (#7642)
monai-bot Apr 15, 2024
605ffe1
Auto3DSeg algo_template hash update (#7643)
monai-bot Apr 15, 2024
818ed8d
Moves to using inbuilt upsample block
marksgraham Apr 15, 2024
bff4b15
Remove source code of numcodecs in the Dockerfile (#7644)
KumoLiu Apr 15, 2024
d17ac2b
Brings back Downsample block for clarity
marksgraham Apr 15, 2024
16d4e2f
Remove memory_pool_limit in trt config (#7647)
KumoLiu Apr 16, 2024
d6e6b24
Add version requirement for mlflow (#7659)
KumoLiu Apr 19, 2024
ffd4454
Auto3DSeg algo_template hash update (#7674)
monai-bot Apr 19, 2024
224c47a
Fixed four test issues within test code. (#7662)
freddiewanah Apr 19, 2024
7a6b69f
Adapt to use assert raises (#7670)
freddiewanah Apr 19, 2024
03a5fa6
MedicalNetPerceptualSimilarity: Add multi-channel (#7568)
SomeUserName1 Apr 19, 2024
c6bf8e9
Workaround for B909 in flake8-bugbear (#7691)
KumoLiu Apr 22, 2024
a9cee62
Update monai/networks/blocks/upsample.py
marksgraham Apr 22, 2024
37a286f
Update monai/networks/nets/autoencoderkl.py
marksgraham Apr 22, 2024
618da31
Update monai/networks/nets/autoencoderkl.py
marksgraham Apr 22, 2024
178ebc8
Fix AttributeError in 'PerceptualLoss' (#7693)
KumoLiu Apr 22, 2024
46c39dc
Requested changes
marksgraham Apr 22, 2024
a3bc49e
Adds 3d cases
marksgraham Apr 22, 2024
90d96ca
Code formatting
marksgraham Apr 22, 2024
7d3cc2d
Attempted fix for upsampling
marksgraham Apr 22, 2024
2356591
Nice without negation
marksgraham Apr 22, 2024
ac9b186
Always convert input to C-order in distance_transform_edt (#7675)
KumoLiu Apr 23, 2024
a59676f
Auto3DSeg algo_template hash update (#7695)
monai-bot Apr 23, 2024
ec6aa33
Merge similar test components with parameterized (#7663)
freddiewanah Apr 23, 2024
dc58e5c
Add ResNet backbones for FlexibleUNet (#7571)
k-sukharev Apr 23, 2024
45992f8
Merge dev
marksgraham Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: dispatch
uses: peter-evans/slash-command-dispatch@v3.0.2
uses: peter-evans/slash-command-dispatch@v4.0.0
with:
token: ${{ secrets.PR_MAINTAIN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- if: runner.os == 'windows'
name: Config pagefile (Windows only)
uses: al-cheb/configure-pagefile-action@v1.3
uses: al-cheb/configure-pagefile-action@v1.4
with:
minimum-size: 8GB
maximum-size: 16GB
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-ngc-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: pip-cache
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ~/.cache/pip
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
- "PTLATEST+CUDA121"
include:
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
- environment: PT191+CUDA113
pytorch: "torch==1.9.1 torchvision==0.10.1 --extra-index-url https://download.pytorch.org/whl/cu113"
base: "nvcr.io/nvidia/pytorch:21.06-py3" # CUDA 11.3
- environment: PT110+CUDA113
pytorch: "torch==1.10.2 torchvision==0.11.3 --extra-index-url https://download.pytorch.org/whl/cu113"
base: "nvcr.io/nvidia/pytorch:21.06-py3" # CUDA 11.3
- environment: PT113+CUDA113
pytorch: "torch==1.13.1 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu113"
base: "nvcr.io/nvidia/pytorch:21.06-py3" # CUDA 11.3
- environment: PTLATEST+CUDA121
pytorch: "-U torch torchvision --extra-index-url https://download.pytorch.org/whl/cu118"
- environment: PT113+CUDA122
pytorch: "torch==1.13.1 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cu121"
base: "nvcr.io/nvidia/pytorch:23.08-py3" # CUDA 12.2
- environment: PTLATEST+CUDA124
pytorch: "-U torch torchvision --extra-index-url https://download.pytorch.org/whl/cu121"
base: "nvcr.io/nvidia/pytorch:24.03-py3" # CUDA 12.4
container:
image: ${{ matrix.base }}
options: "--gpus all"
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
if pgrep python; then pkill python; fi
shell: bash
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage.xml
Expand All @@ -76,7 +76,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:22.10", "pytorch:23.08"]
container: ["pytorch:23.08", "pytorch:24.03"]
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
if pgrep python; then pkill python; fi
shell: bash
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage.xml
Expand All @@ -121,7 +121,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:23.08"]
container: ["pytorch:24.03"]
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
if pgrep python; then pkill python; fi
shell: bash
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage.xml
Expand All @@ -221,7 +221,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
needs: cron-gpu # so that monai itself is verified first
container:
image: nvcr.io/nvidia/pytorch:23.08-py3 # testing with the latest pytorch base image
image: nvcr.io/nvidia/pytorch:24.03-py3 # testing with the latest pytorch base image
options: "--gpus all --ipc=host"
runs-on: [self-hosted, linux, x64, integration]
steps:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
versioning_dev:
# compute versioning file from python setup.py
# upload as artifact
if: github.repository == 'Project-MONAI/MONAI'
# if: github.repository == 'Project-MONAI/MONAI'
if: ${{ false }} # disable docker build job project-monai/monai#7450
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -47,8 +48,8 @@ jobs:
rm -rf {*,.[^.]*}

docker_build_dev:
# builds projectmonai/monai:latest
if: github.repository == 'Project-MONAI/MONAI'
# if: github.repository == 'Project-MONAI/MONAI'
if: ${{ false }} # disable docker build job project-monai/monai#7450
needs: versioning_dev
runs-on: ubuntu-latest
steps:
Expand All @@ -62,7 +63,7 @@ jobs:
- name: docker_build
shell: bash
run: |
rm -rf /opt/hostedtoolcache
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
docker --version
# get tag info for versioning
cat _version.py
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: pip-cache
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
run: ./runtests.sh --build --net

- name: Add reaction
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.PR_MAINTAIN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
Expand All @@ -95,7 +95,7 @@ jobs:
id: pip-cache
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
python -m tests.test_integration_gpu_customization

- name: Add reaction
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.PR_MAINTAIN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pythonapp-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
- "PT210+CUDA121DOCKER"
include:
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
- environment: PT19+CUDA114DOCKER
# 21.10: 1.10.0a0+0aef44c
pytorch: "-h" # we explicitly set pytorch to -h to avoid pip install error
base: "nvcr.io/nvidia/pytorch:21.10-py3"
- environment: PT110+CUDA111
pytorch: "torch==1.10.2 torchvision==0.11.3 --extra-index-url https://download.pytorch.org/whl/cu111"
base: "nvcr.io/nvidia/cuda:11.1.1-devel-ubuntu18.04"
Expand All @@ -47,6 +43,10 @@ jobs:
# 23.08: 2.1.0a0+29c30b1
pytorch: "-h" # we explicitly set pytorch to -h to avoid pip install error
base: "nvcr.io/nvidia/pytorch:23.08-py3"
- environment: PT210+CUDA121DOCKER
# 24.03: 2.3.0a0+40ec155e58.nv24.3
pytorch: "-h" # we explicitly set pytorch to -h to avoid pip install error
base: "nvcr.io/nvidia/pytorch:24.03-py3"
container:
image: ${{ matrix.base }}
options: --gpus all --env NVIDIA_DISABLE_REQUIRE=true # workaround for unsatisfied condition: cuda>=11.6
Expand Down Expand Up @@ -137,6 +137,6 @@ jobs:
shell: bash
- name: Upload coverage
if: ${{ github.head_ref != 'dev' && github.event.pull_request.merged != true }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
6 changes: 3 additions & 3 deletions .github/workflows/pythonapp-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
shell: bash
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
shell: bash
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
shell: bash
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ~/.cache/pip
Expand All @@ -62,7 +62,7 @@ jobs:
steps:
- if: runner.os == 'windows'
name: Config pagefile (Windows only)
uses: al-cheb/configure-pagefile-action@v1.3
uses: al-cheb/configure-pagefile-action@v1.4
with:
minimum-size: 8GB
maximum-size: 16GB
Expand All @@ -83,7 +83,7 @@ jobs:
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
shell: bash
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
python -m pip install --user --upgrade setuptools wheel
- name: Build and test source archive and wheel file
run: |
rm -rf /opt/hostedtoolcache
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
root_dir=$PWD
echo "$root_dir"
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
python-version: '3.9'
- shell: bash
run: |
rm -rf /opt/hostedtoolcache
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
git describe
python -m pip install --user --upgrade setuptools wheel
python setup.py build
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
RELEASE_VERSION: ${{ steps.versioning.outputs.tag }}
shell: bash
run: |
rm -rf /opt/hostedtoolcache
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
# get tag info for versioning
mv _version.py monai/
# version checks
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/setupapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
if: ${{ startsWith(github.ref, 'refs/heads/dev') }}
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
if pgrep python; then pkill python; fi
shell: bash
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage.xml
Expand All @@ -91,7 +91,7 @@ jobs:
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -100,7 +100,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ steps.pip-cache.outputs.datew }}
- name: Install the dependencies
run: |
rm -rf /opt/hostedtoolcache
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
python -m pip install --upgrade pip wheel
python -m pip install -r requirements-dev.txt
- name: Run quick tests CPU ubuntu
Expand All @@ -111,7 +111,7 @@ jobs:
BUILD_MONAI=1 ./runtests.sh --build --quick --min
coverage xml --ignore-errors
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage.xml
Expand All @@ -128,7 +128,7 @@ jobs:
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: |
Expand All @@ -146,7 +146,7 @@ jobs:
- name: Install the default branch with build (dev branch only)
if: github.ref == 'refs/heads/dev'
run: |
rm -rf /opt/hostedtoolcache
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
BUILD_MONAI=1 pip install git+https://github.com/Project-MONAI/MONAI#egg=MONAI
python -c 'import monai; monai.config.print_config()'
- name: Get the test cases (dev branch only)
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
rev: v0.3.5
hooks:
- id: ruff
args:
Expand Down Expand Up @@ -58,7 +58,7 @@ repos:
name: Unused noqa
additional_dependencies:
- flake8>=3.8.1
- flake8-bugbear
- flake8-bugbear<=24.2.6
- flake8-comprehensions
- pep8-naming
exclude: |
Expand Down
Loading
Loading