You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is caused by using the same keys in (hyper_parameters.yaml, hyper_parameters_search.yaml) of dints.
When the order is scrambled by os.listdir in here, it can trigger using the transform#resample_to_spacing in searching
cache_rate has the same problem, and so I include it in this PR too.
Since search is not used by default, so it is not covered by any test in MONAI. I added a test case here (and I found issues in multi-GPU when search is enabled).
2023-04-18 08:00:46.470993 - Length of input patch is recommended to be a multiple of 32.
Traceback (most recent call last):
File "/tmp/tmpduj1w7ul/work_dir/dints_0/scripts/dummy_runner.py", line 185, in <module>
fire.Fire(DummyRunnerDiNTS)
File "/home/wenqil/anaconda3/envs/py38/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/wenqil/anaconda3/envs/py38/lib/python3.8/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/home/wenqil/anaconda3/envs/py38/lib/python3.8/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/tmp/tmpduj1w7ul/work_dir/dints_0/scripts/dummy_runner.py", line 73, in __init__
image_shape = data_stat["stats_by_cases"][_k]["image_stats"]["shape"]
TypeError: 'NoneType' object is not subscriptable
File "/tmp/tmpcvwc8wzi/work_dir/segresnet_0/scripts/train.py", line 23, in run
run_segmenter(config_file=config_file, **override)
File "/tmp/tmpcvwc8wzi/work_dir/segresnet_0/scripts/segmenter.py", line 1923, in run_segmenter
run_segmenter_worker(0, config_file, kwargs)
File "/tmp/tmpcvwc8wzi/work_dir/segresnet_0/scripts/segmenter.py", line 1897, in run_segmenter_worker
best_metric = segmenter.run()
File "/tmp/tmpcvwc8wzi/work_dir/segresnet_0/scripts/segmenter.py", line 1866, in run
self.train()
File "/tmp/tmpcvwc8wzi/work_dir/segresnet_0/scripts/segmenter.py", line 1150, in train
train_loss, train_acc = self.train_epoch(
File "/tmp/tmpcvwc8wzi/work_dir/segresnet_0/scripts/segmenter.py", line 1578, in train_epoch
data = data_list[ich]
IndexError: tuple index out of range
there's still an error after the above ones being fixed
======================================================================
ERROR: test_autorunner_ensemble (__main__.TestAutoRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wenqil/Documents/MONAI/tests/test_integration_autorunner.py", line 132, in test_autorunner_ensemble
runner.run()
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/auto_runner.py", line 803, in run
self._train_algo_in_sequence(history)
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/auto_runner.py", line 659, in _train_algo_in_sequence
acc = algo.get_score()
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/bundle_gen.py", line 264, in get_score
dict_file = ConfigParser.load_config_file(os.path.join(ckpt_path, "progress.yaml"))
File "/home/wenqil/Documents/MONAI/monai/bundle/config_parser.py", line 402, in load_config_file
with open(_filepath) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpd2llrjiy/work_dir/segresnet_0/model/progress.yaml'
there's still an error after the above ones being fixed
======================================================================
ERROR: test_autorunner_ensemble (__main__.TestAutoRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wenqil/Documents/MONAI/tests/test_integration_autorunner.py", line 132, in test_autorunner_ensemble
runner.run()
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/auto_runner.py", line 803, in run
self._train_algo_in_sequence(history)
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/auto_runner.py", line 659, in _train_algo_in_sequence
acc = algo.get_score()
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/bundle_gen.py", line 264, in get_score
dict_file = ConfigParser.load_config_file(os.path.join(ckpt_path, "progress.yaml"))
File "/home/wenqil/Documents/MONAI/monai/bundle/config_parser.py", line 402, in load_config_file
with open(_filepath) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpd2llrjiy/work_dir/segresnet_0/model/progress.yaml'
this is still an issue when num_steps_per_image>1, @myron prgoress.yaml was not saved properly. but we are merging this and overriding it to num_steps_per_image=1 in the test cases because we want to run full integration tests to unblock the release.
there's still an error after the above ones being fixed
======================================================================
ERROR: test_autorunner_ensemble (__main__.TestAutoRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wenqil/Documents/MONAI/tests/test_integration_autorunner.py", line 132, in test_autorunner_ensemble
runner.run()
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/auto_runner.py", line 803, in run
self._train_algo_in_sequence(history)
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/auto_runner.py", line 659, in _train_algo_in_sequence
acc = algo.get_score()
File "/home/wenqil/Documents/MONAI/monai/apps/auto3dseg/bundle_gen.py", line 264, in get_score
dict_file = ConfigParser.load_config_file(os.path.join(ckpt_path, "progress.yaml"))
File "/home/wenqil/Documents/MONAI/monai/bundle/config_parser.py", line 402, in load_config_file
with open(_filepath) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpd2llrjiy/work_dir/segresnet_0/model/progress.yaml'
Looks like @wyli has resolved this issue. I will merge it to the main branch for more integration tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is to fix: https://github.com/Project-MONAI/MONAI/actions/runs/4729226287/jobs/8391521501
The issue is caused by using the same keys in (hyper_parameters.yaml, hyper_parameters_search.yaml) of
dints.When the order is scrambled by
os.listdirin here, it can trigger using the transform#resample_to_spacing insearchingcache_ratehas the same problem, and so I include it in this PR too.Since
searchis not used by default, so it is not covered by any test in MONAI. I added a test case here (and I found issues in multi-GPU when search is enabled).