AI Toolkit for Healthcare Imaging
  • Python 95.2%
  • C++ 2.4%
  • Cuda 2%
  • Shell 0.2%
  • C 0.2%
Find a file
Rafael Garcia-Dias f315bcb089
8620 ModuleNotFoundError: No module named \'onnxscript\' in test-py3x (3.11) pipeline (#8621)
Fixes #8620 

### Description

On October 8th, there was a new release of the ONNX library
([1.19.1](https://github.com/onnx/onnx/tree/v1.19.1)).
Looking into previous versions of our CICD, which run successfully, the
errors coincide with that date. For example, [this
one](https://github.com/Project-MONAI/MONAI/actions/runs/18153916782/job/51669624135#logs)
was ok with onnx 1.19.0.

[This issue](https://github.com/onnx/onnx/issues/7257) in the ONNX
project suggests that there were some recent breaking changes. This is
not exactly our issue, but it suggests that there may be something
similar going on.

I have added the condition `<1.19.1; python == 3.11` to prevent updates
on this Python version, since our original issue referred to Python
3.11.
It may be that this affects other versions. Let's see if the pipelines
execute successfully.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: R. Garcia-Dias <rafaelagd@gmail.com>
2025-11-06 10:18:55 +08:00
.github Bump github/codeql-action from 3 to 4 (#8616) 2025-11-03 07:35:44 +00:00
docs added ReduceTrait and FlattenSequence (#8531) 2025-11-03 20:05:20 +08:00
monai Fix box_iou returning 0 for floating-point results less than 1. #8369 (#8553) 2025-11-03 22:48:12 +08:00
tests Fix box_iou returning 0 for floating-point results less than 1. #8369 (#8553) 2025-11-03 22:48:12 +08:00
.clang-format adds a basic clang formatter (#1006) 2020-09-12 13:59:30 +01:00
.coderabbit.yaml Adding .coderabbit.yaml File (#8513) 2025-07-21 13:40:42 +08:00
.deepsource.toml CI: pre-commit (#2843) 2021-08-26 18:19:30 +01:00
.dockerignore CI: pre-commit (#2843) 2021-08-26 18:19:30 +01:00
.gitattributes 197 set up versioneer and test releasing (#225) 2020-03-30 08:25:45 +08:00
.gitignore Implement TorchIO transforms wrapper analogous to TorchVision transfo… (#7579) 2024-11-28 07:35:29 +00:00
.pre-commit-config.yaml Zarr compression tests only with versions before 3.0 (#8319) 2025-02-03 13:03:17 +08:00
.readthedocs.yml upgrade pytorch version (#6228) 2023-03-23 14:17:20 +00:00
CHANGELOG.md Release 1.5.1 Updates (#8575) 2025-09-22 10:10:14 +00:00
CITATION.cff Update citation for 1.5.1 (#8582) 2025-09-22 19:17:15 +00:00
CODE_OF_CONDUCT.md change email (#1510) 2021-01-26 17:31:14 +00:00
CONTRIBUTING.md 8185 test refactor 2 (#8405) 2025-07-25 20:24:02 +01:00
Dockerfile TRT support for MAISI (#8153) 2024-11-14 13:12:53 +08:00
environment-dev.yml Bump torch minimum to mitigate CVE-2024-31580 & CVE-2024-31583 and enable numpy 2 compatibility (#8368) 2025-03-04 15:33:31 +00:00
LICENSE Create LICENSE 2019-10-11 10:17:03 -07:00
MANIFEST.in pip install, CI/CD enhancements (#1033) 2020-09-14 21:45:58 +01:00
pyproject.toml Include more-itertools in build env (#8611) 2025-10-31 16:17:32 +00:00
README.md 8620 ModuleNotFoundError: No module named \'onnxscript\' in test-py3x (3.11) pipeline (#8621) 2025-11-06 10:18:55 +08:00
requirements-dev.txt 8620 ModuleNotFoundError: No module named \'onnxscript\' in test-py3x (3.11) pipeline (#8621) 2025-11-06 10:18:55 +08:00
requirements-min.txt Temporarily Restrict setuptools Version to 79.0.1 (#8441) 2025-05-08 07:26:51 +00:00
requirements.txt Updates for Pytorch 2.7 (#8429) 2025-07-24 06:25:56 +08:00
runtests.sh Enable Pytorch 2.6 (#8309) 2025-03-08 00:14:24 +00:00
SECURITY.md Create SECURITY.md (#8546) 2025-09-15 15:30:15 +08:00
setup.cfg Fix build failure by pinning pyamg to versions below 5.3.0 (#8548) 2025-09-01 12:08:05 +01:00
setup.py Replaced package "pkg_resources" with "packaging" (#7953) 2024-08-09 09:29:47 +00:00
versioneer.py auto updates (#5445) 2022-11-01 13:27:02 +00:00

project-monai

Medical Open Network for AI

Supported Python versions License auto-commit-msg PyPI version docker conda

premerge postmerge Documentation Status codecov monai Downloads Last Month

MONAI is a PyTorch-based, open-source framework for deep learning in healthcare imaging, part of the PyTorch Ecosystem. Its ambitions are as follows:

  • Developing a community of academic, industrial and clinical researchers collaborating on a common foundation;
  • Creating state-of-the-art, end-to-end training workflows for healthcare imaging;
  • Providing researchers with the optimized and standardized way to create and evaluate deep learning models.

Features

Please see the technical highlights and What's New of the milestone releases.

  • flexible pre-processing for multi-dimensional medical imaging data;
  • compositional & portable APIs for ease of integration in existing workflows;
  • domain-specific implementations for networks, losses, evaluation metrics and more;
  • customizable design for varying user expertise;
  • multi-GPU multi-node data parallelism support.

Requirements

MONAI works with the currently supported versions of Python, and depends directly on NumPy and PyTorch with many optional dependencies.

  • Major releases of MONAI will have dependency versions stated for them. The current state of the dev branch in this repository is the unreleased development version of MONAI which typically will support current versions of dependencies and include updates and bug fixes to do so.
  • PyTorch support covers the current version plus three previous minor versions. If compatibility issues with a PyTorch version and other dependencies arise, support for a version may be delayed until a major release.
  • Our support policy for other dependencies adheres for the most part to SPEC0, where dependency versions are supported where possible for up to two years. Discovered vulnerabilities or defects may require certain versions to be explicitly not supported.
  • See the requirements*.txt files for dependency version information.

Installation

To install the current release, you can simply run:

pip install monai

Please refer to the installation guide for other installation options.

Getting Started

MedNIST demo and MONAI for PyTorch Users are available on Colab.

Examples and notebook tutorials are located at Project-MONAI/tutorials.

Technical documentation is available at docs.monai.io.

Citation

If you have used MONAI in your research, please cite us! The citation can be exported from: https://arxiv.org/abs/2211.02701.

Model Zoo

The MONAI Model Zoo is a place for researchers and data scientists to share the latest and great models from the community. Utilizing the MONAI Bundle format makes it easy to get started building workflows with MONAI.

Contributing

For guidance on making a contribution to MONAI, see the contributing guidelines.

Community

Join the conversation on Twitter/X @ProjectMONAI, LinkedIn, or join our Slack channel.

Ask and answer questions over on MONAI's GitHub Discussions tab.