Project-MONAI / tutorials

MONAI Tutorials
https://monai.io/started.html
Apache License 2.0
1.85k stars 682 forks source link

acceleration/multi_gpu_test.ipynb #1528

Closed wyli closed 1 year ago

wyli commented 1 year ago
[2023-09-25T13:52:23.422Z] Running ./acceleration/multi_gpu_test.ipynb
[2023-09-25T13:52:23.422Z] Checking PEP8 compliance...
[2023-09-25T13:52:23.677Z] Running notebook...
[2023-09-25T13:52:23.677Z] Before:
[2023-09-25T13:52:23.677Z]     "max_epochs = 2\n",
[2023-09-25T13:52:23.677Z]       "2023-01-20 14:16:00,009 - Engine run starting with max_epochs=2.\n",
[2023-09-25T13:52:23.677Z]       "2023-01-20 14:16:00,208 - Engine run starting with max_epochs=2.\n",
[2023-09-25T13:52:23.677Z]       "2023-01-20 14:16:01,402 - Engine run starting with max_epochs=2.\n",
[2023-09-25T13:52:23.677Z] After:
[2023-09-25T13:52:23.677Z]     "max_epochs = 1\n",
[2023-09-25T13:52:23.677Z]       "2023-01-20 14:16:00,009 - Engine run starting with max_epochs = 1.\n",
[2023-09-25T13:52:23.677Z]       "2023-01-20 14:16:00,208 - Engine run starting with max_epochs = 1.\n",
[2023-09-25T13:52:23.677Z]       "2023-01-20 14:16:01,402 - Engine run starting with max_epochs = 1.\n",
[2023-09-25T13:52:30.212Z] MONAI version: 1.3.0rc1+4.g18a671a7
[2023-09-25T13:52:30.213Z] Numpy version: 1.22.2
[2023-09-25T13:52:30.213Z] Pytorch version: 2.1.0a0+29c30b1
[2023-09-25T13:52:30.213Z] MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False
[2023-09-25T13:52:30.213Z] MONAI rev id: 18a671a7f12389dd8263a4c2232196dcca814bb9
[2023-09-25T13:52:30.213Z] MONAI __file__: /home/jenkins/agent/workspace/Monai-notebooks/MONAI/monai/__init__.py
[2023-09-25T13:52:30.213Z] 
[2023-09-25T13:52:30.213Z] Optional dependencies:
[2023-09-25T13:52:30.213Z] Pytorch Ignite version: 0.4.11
[2023-09-25T13:52:30.213Z] ITK version: 5.3.0
[2023-09-25T13:52:30.213Z] Nibabel version: 5.1.0
[2023-09-25T13:52:30.213Z] scikit-image version: 0.21.0
[2023-09-25T13:52:30.213Z] scipy version: 1.11.1
[2023-09-25T13:52:30.213Z] Pillow version: 9.2.0
[2023-09-25T13:52:30.213Z] Tensorboard version: 2.9.0
[2023-09-25T13:52:30.213Z] gdown version: 4.7.1
[2023-09-25T13:52:30.213Z] TorchVision version: 0.16.0a0
[2023-09-25T13:52:30.213Z] tqdm version: 4.65.0
[2023-09-25T13:52:30.213Z] lmdb version: 1.4.1
[2023-09-25T13:52:30.213Z] psutil version: 5.9.4
[2023-09-25T13:52:30.213Z] pandas version: 1.5.2
[2023-09-25T13:52:30.213Z] einops version: 0.6.1
[2023-09-25T13:52:30.213Z] transformers version: 4.21.3
[2023-09-25T13:52:30.213Z] mlflow version: 2.7.1
[2023-09-25T13:52:30.213Z] pynrrd version: 1.0.0
[2023-09-25T13:52:30.213Z] clearml version: 1.13.0
[2023-09-25T13:52:30.213Z] 
[2023-09-25T13:52:30.213Z] For details about installing the optional dependencies, please visit:
[2023-09-25T13:52:30.213Z]     https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies
[2023-09-25T13:52:30.213Z] 
[2023-09-25T13:52:31.594Z] papermill  --progress-bar -k python3
[2023-09-25T13:52:32.156Z] /usr/local/lib/python3.10/dist-packages/papermill/iorw.py:153: UserWarning: the file is not specified with any extension : -
[2023-09-25T13:52:32.156Z]   warnings.warn(
[2023-09-25T13:52:47.782Z] 
Executing:   0%|          | 0/13 [00:00<?, ?cell/s]
Executing:   8%|▊         | 1/13 [00:01<00:14,  1.23s/cell]
Executing:  23%|██▎       | 3/13 [00:08<00:29,  2.99s/cell]
Executing:  38%|███▊      | 5/13 [00:14<00:23,  2.94s/cell]
Executing:  38%|███▊      | 5/13 [00:15<00:25,  3.15s/cell]
[2023-09-25T13:52:47.783Z] /usr/local/lib/python3.10/dist-packages/papermill/iorw.py:153: UserWarning: the file is not specified with any extension : -
[2023-09-25T13:52:47.783Z]   warnings.warn(
[2023-09-25T13:52:47.783Z] Traceback (most recent call last):
[2023-09-25T13:52:47.783Z]   File "/usr/local/bin/papermill", line 8, in <module>
[2023-09-25T13:52:47.783Z]     sys.exit(papermill())
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in __call__
[2023-09-25T13:52:47.783Z]     return self.main(*args, **kwargs)
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main
[2023-09-25T13:52:47.783Z]     rv = self.invoke(ctx)
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke
[2023-09-25T13:52:47.783Z]     return ctx.invoke(self.callback, **ctx.params)
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke
[2023-09-25T13:52:47.783Z]     return __callback(*args, **kwargs)
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/click/decorators.py", line 33, in new_func
[2023-09-25T13:52:47.783Z]     return f(get_current_context(), *args, **kwargs)
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/papermill/cli.py", line 250, in papermill
[2023-09-25T13:52:47.783Z]     execute_notebook(
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/papermill/execute.py", line 128, in execute_notebook
[2023-09-25T13:52:47.783Z]     raise_for_execution_errors(nb, output_path)
[2023-09-25T13:52:47.783Z]   File "/usr/local/lib/python3.10/dist-packages/papermill/execute.py", line 232, in raise_for_execution_errors
[2023-09-25T13:52:47.783Z]     raise error
[2023-09-25T13:52:47.783Z] papermill.exceptions.PapermillExecutionError: 
[2023-09-25T13:52:47.783Z] ---------------------------------------------------------------------------
[2023-09-25T13:52:47.783Z] Exception encountered at "In [2]":
[2023-09-25T13:52:47.783Z] ---------------------------------------------------------------------------
[2023-09-25T13:52:47.783Z] ImportError                               Traceback (most recent call last)
[2023-09-25T13:52:47.783Z] Cell In[2], line 3
[2023-09-25T13:52:47.783Z]       1 import torch
[2023-09-25T13:52:47.783Z]       2 from monai.config import print_config
[2023-09-25T13:52:47.783Z] ----> 3 from monai.engines import create_multigpu_supervised_trainer
[2023-09-25T13:52:47.783Z]       4 from monai.networks.nets import UNet
[2023-09-25T13:52:47.783Z]       6 print_config()
[2023-09-25T13:52:47.783Z] 
[2023-09-25T13:52:47.783Z] ImportError: cannot import name 'create_multigpu_supervised_trainer' from 'monai.engines' (/home/jenkins/agent/workspace/Monai-notebooks/MONAI/monai/engines/__init__.py)