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

Unexpected keyword argument 'meta_key_postfix' in monai/utils/module.py #8271

Closed
caolonghao opened this issue Dec 26, 2024 · 1 comment
Closed

Comments

@caolonghao
Copy link

Describe the bug
When trying to utilize https://catalog.ngc.nvidia.com/orgs/nvidia/teams/monaitoolkit/models/monai_lung_nodule_ct_detection to do inference on my own data, I met the problem after running python -m monai.bundle run --config_file "['configs/inference.json']".

To Reproduce

  1. Configure the environment for running monai bundle.
  2. Modify the data path related configuration.
  3. Run python -m monai.bundle run --config_file "['configs/inference.json']"

Related Issue
Project-MONAI/MONAILabel#1680

Environment

================================
Printing MONAI config...
================================
MONAI version: 1.4.0
Numpy version: 1.26.4
Pytorch version: 2.4.0
MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False
MONAI rev id: 46a5272196a6c2590ca2589029eed8e4d56ff008
MONAI __file__: D:\miniconda\envs\torch\lib\site-packages\monai\__init__.py

Optional dependencies:
Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.
ITK version: 5.4.0
Nibabel version: 5.2.1
scikit-image version: 0.24.0
scipy version: 1.13.1
Pillow version: 10.4.0
Tensorboard version: NOT INSTALLED or UNKNOWN VERSION.
gdown version: NOT INSTALLED or UNKNOWN VERSION.
TorchVision version: 0.19.0
tqdm version: 4.66.5
lmdb version: 1.5.1
psutil version: 6.0.0
pandas version: 2.2.3
einops version: 0.8.0
transformers version: 4.45.2
mlflow version: NOT INSTALLED or UNKNOWN VERSION.
pynrrd version: 1.0.0
clearml version: NOT INSTALLED or UNKNOWN VERSION.

For details about installing the optional dependencies, please visit:
    https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies


================================
Printing system config...
================================
System: Windows
Win32 version: ('10', '10.0.22631', 'SP0', 'Multiprocessor Free')
Win32 edition: ProfessionalWorkstation
Platform: Windows-10-10.0.22631-SP0
Processor: Intel64 Family 6 Model 186 Stepping 2, GenuineIntel
Machine: AMD64
Python version: 3.9.19
Process name: python.exe
Command: ['D:\\miniconda\\envs\\torch\\python.exe', '-c', 'import monai; monai.config.print_debug_info()']
Open files: [popenfile(path='C:\\Program Files\\WindowsApps\\Microsoft.LanguageExperiencePackzh-CN_22621.99.362.0_neutral__8wekyb3d8bbwe\\windows\\System32\\zh-CN\\39be84596b70ef54763a67e0b1b14788\\kernel32.dll.mui', fd=-1), popenfile(path='C:\\Program Files\\WindowsApps\\Microsoft.LanguageExperiencePackzh-CN_22621.99.362.0_neutral__8wekyb3d8bbwe\\windows\\System32\\zh-CN\\236bf8b47f0b55a7ce7bab41284e2572\\KernelBase.dll.mui', fd=-1), popenfile(path='C:\\Program Files\\WindowsApps\\Microsoft.LanguageExperiencePackzh-CN_22621.99.362.0_neutral__8wekyb3d8bbwe\\windows\\System32\\zh-CN\\59c90d950e3e1b7e1b5ecdbf3851e4ec\\tzres.dll.mui', fd=-1)]
Num physical CPUs: 14
Num logical CPUs: 20
Num usable CPUs: 20
CPU usage (%): [1.7, 0.7, 1.4, 1.4, 5.2, 11.5, 5.2, 7.0, 0.0, 0.0, 0.3, 1.0, 0.4, 0.3, 0.3, 2.1, 1.7, 7.0, 2.4, 3.1]
CPU freq. (MHz): 2600
Load avg. in last 1, 5, 15 mins (%): [0.0, 0.0, 0.0]
Disk usage (%): 73.5
Avg. sensor temp. (Celsius): UNKNOWN for given OS
Total physical memory (GB): 31.6
Available memory (GB): 14.4
Used memory (GB): 17.2

================================
Printing GPU config...
================================
Num GPUs: 1
Has CUDA: True
CUDA version: 12.4
cuDNN enabled: True
NVIDIA_TF32_OVERRIDE: None
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE: None
cuDNN version: 90100
Current device: 0
Library compiled for CUDA architectures: ['sm_50', 'sm_60', 'sm_61', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90']
GPU 0 Name: NVIDIA GeForce RTX 4070 Laptop GPU
GPU 0 Is integrated: False
GPU 0 Is multi GPU board: False
GPU 0 Multi processor count: 36
GPU 0 Total memory (GB): 8.0
GPU 0 CUDA capability (maj.min): 8.9

Additional context
Add any other context about the problem here.

@caolonghao
Copy link
Author

Well, it seems that the bundle I downloaded from monai model zoo webpage is outdated. Similar issues can be found there: Project-MONAI/MONAILabel#1429 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant