Closed
Description
PolynomialLR is new in torch 1.13 which breaks tests with earlier versions of pytorch
[2023-03-16T00:35:16.877Z] current epoch: 2 current mean dice: 0.4376 best mean dice: 0.4376 at epoch 2
[2023-03-16T00:35:16.877Z] train completed, best_metric: 0.4376 at epoch: 2
[2023-03-16T00:35:16.877Z] 2023-03-16 00:35:14,819 - INFO - The keys num_warmup_epochs cannot be found in the /tmp/tmpn5i1ty3o/workdir/dints_0/configs/hyper_parameters.yaml for training. Skipped overriding key num_warmup_epochs.
[2023-03-16T00:35:16.877Z] 2023-03-16 00:35:14,819 - INFO - The keys use_pretrain cannot be found in the /tmp/tmpn5i1ty3o/workdir/dints_0/configs/hyper_parameters.yaml for training. Skipped overriding key use_pretrain.
[2023-03-16T00:35:16.877Z] 2023-03-16 00:35:14,819 - INFO - The keys pretrained_path cannot be found in the /tmp/tmpn5i1ty3o/workdir/dints_0/configs/hyper_parameters.yaml for training. Skipped overriding key pretrained_path.
[2023-03-16T00:35:16.877Z] 2023-03-16 00:35:14,820 - INFO - Launching: python /tmp/tmpn5i1ty3o/workdir/dints_0/scripts/train.py run --config_file='/tmp/tmpn5i1ty3o/workdir/dints_0/configs/transforms_validate.yaml','/tmp/tmpn5i1ty3o/workdir/dints_0/configs/transforms_train.yaml','/tmp/tmpn5i1ty3o/workdir/dints_0/configs/network.yaml','/tmp/tmpn5i1ty3o/workdir/dints_0/configs/hyper_parameters.yaml','/tmp/tmpn5i1ty3o/workdir/dints_0/configs/transforms_infer.yaml','/tmp/tmpn5i1ty3o/workdir/dints_0/configs/hyper_parameters_search.yaml','/tmp/tmpn5i1ty3o/workdir/dints_0/configs/network_search.yaml' --training#num_images_per_batch=2 --training#num_epochs=2 --training#num_epochs_per_validation=1 --training#determ=True
[2023-03-16T00:35:24.956Z] monai.transforms.io.dictionary LoadImaged.__init__:image_only: Current default value of argument `image_only=False` has been deprecated since version 1.1. It will be changed to `image_only=True` in version 1.3.
[2023-03-16T00:35:24.958Z] [info] number of GPUs: 1
[2023-03-16T00:35:24.958Z] [info] world_size: 1
[2023-03-16T00:35:24.958Z] train_files: 8
[2023-03-16T00:35:24.958Z] val_files: 4
[2023-03-16T00:35:24.958Z] 2023-03-16 00:35:19.387838 - Length of input patch is recommended to be a multiple of 32.
[2023-03-16T00:35:24.958Z] num_epochs 2
[2023-03-16T00:35:24.958Z] num_epochs_per_validation 1
[2023-03-16T00:35:24.958Z] Traceback (most recent call last):
[2023-03-16T00:35:24.958Z] File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/bundle/config_item.py", line 292, in instantiate
[2023-03-16T00:35:24.958Z] return instantiate(modname, mode, **args)
[2023-03-16T00:35:24.958Z] File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/utils/module.py", line 246, in instantiate
[2023-03-16T00:35:24.958Z] raise ModuleNotFoundError(f"Cannot locate class or function path: '{__path}'.")
[2023-03-16T00:35:24.958Z] ModuleNotFoundError: Cannot locate class or function path: 'torch.optim.lr_scheduler.PolynomialLR'.
[2023-03-16T00:35:24.958Z]
[2023-03-16T00:35:24.958Z] The above exception was the direct cause of the following exception:
[2023-03-16T00:35:24.958Z]
[2023-03-16T00:35:24.958Z] Traceback (most recent call last):
[2023-03-16T00:35:24.958Z] File "/tmp/tmpn5i1ty3o/workdir/dints_0/scripts/train.py", line 479, in <module>
[2023-03-16T00:35:24.958Z] fire.Fire()
[2023-03-16T00:35:24.958Z] File "/opt/conda/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
[2023-03-16T00:35:24.958Z] component_trace = _Fire(component, args, parsed_flag_args, context, name)
[2023-03-16T00:35:24.958Z] File "/opt/conda/lib/python3.8/site-packages/fire/core.py", line 475, in _Fire
[2023-03-16T00:35:24.958Z] component, remaining_args = _CallAndUpdateTrace(
[2023-03-16T00:35:24.958Z] File "/opt/conda/lib/python3.8/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
[2023-03-16T00:35:24.958Z] component = fn(*varargs, **kwargs)
[2023-03-16T00:35:24.958Z] File "/tmp/tmpn5i1ty3o/workdir/dints_0/scripts/train.py", line 214, in run
[2023-03-16T00:35:24.958Z] lr_scheduler = lr_scheduler_part.instantiate(optimizer=optimizer)
[2023-03-16T00:35:24.958Z] File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/bundle/config_item.py", line 294, in instantiate
[2023-03-16T00:35:24.958Z] raise RuntimeError(f"Failed to instantiate {self}.") from e
[2023-03-16T00:35:24.958Z] RuntimeError: Failed to instantiate {'_target_': 'torch.optim.lr_scheduler.PolynomialLR', 'optimizer': {'_target_': 'torch.optim.SGD', 'lr': 0.2, 'momentum': 0.9, 'weight_decay': 4e-05}, 'power': 0.5, 'total_iters': 3}.
[2023-03-16T00:35:25.212Z]
[2023-03-16T00:35:25.212Z] EFinished test: test_ensemble (tests.test_auto3dseg_ensemble.TestEnsembleBuilder) (76.7s)
- tests/test_integration_autorunner.py
- tests/test_auto3dseg_ensemble.py
issue introduced by af46d7b @mingxin-zheng @dongyang0122 could you please have a look soon? skip the test or update the algo
Metadata
Metadata
Assignees
Labels
No labels