Project-MONAI / Project-MONAI/MONAI
DeprecationWarning when import monai
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 8.7k
- Forks
- 1.6k
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 20
Description
/usr/local/lib/python3.10/dist-packages/ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support for functional optimizers is deprecated and will be removed in a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
/usr/local/lib/python3.10/dist-packages/modelopt/torch/quantization/tensor_quant.py:92: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
scaled_e4m3_abstract = torch.library.impl_abstract("trt::quantize_fp8")(
WARNING:py.warnings:`np.bool8` is a deprecated alias for `np.bool_`. (Deprecated NumPy 1.24)
WARNING:py.warnings:`np.object0` is a deprecated alias for ``np.object0` is a deprecated alias for `np.object_`. `object` can be used instead. (Deprecated NumPy 1.24)`. (Deprecated NumPy 1.24)
WARNING:py.warnings:`np.int0` is a deprecated alias for `np.intp`. (Deprecated NumPy 1.24)
WARNING:py.warnings:`np.uint0` is a deprecated alias for `np.uintp`. (Deprecated NumPy 1.24)
WARNING:py.warnings:`np.void0` is a deprecated alias for `np.void`. (Deprecated NumPy 1.24)
WARNING:py.warnings:`np.bytes0` is a deprecated alias for `np.bytes_`. (Deprecated NumPy 1.24)
WARNING:py.warnings:`np.str0` is a deprecated alias for `np.str_`. (Deprecated NumPy 1.24)
WARNING:py.warnings:Implicitly cleaning up <TemporaryDirectory '/tmp/tmpwhzwfrqi'>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning output by running the reported import monai entry point in the Python 3.10 environment. Trace the listed warnings from ignite/handlers/checkpoint.py, modelopt/torch/quantization/tensor_quant.py, and the NumPy aliases to determine which are caused by MONAI's import path; no repository file or test is named, and done means resolving or clearly isolating the reported warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100