-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Auto3DSeg HPO folder structure error in 1.2.0rc6 #6502
Copy link
Copy link
Closed
Description
Describe the bug
The folder structure is wrong in the experiments generated by HPOGen.
To Reproduce
Run the script provided in #6501
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/dist-packages/monai/apps/auto3dseg/__main__.py", line 24, in <module>
fire.Fire(
File "/usr/local/lib/python3.8/dist-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.8/dist-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/usr/local/lib/python3.8/dist-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/monai/apps/auto3dseg/hpo_gen.py", line 230, in run_algo
self.generate(output_folder)
File "/usr/local/lib/python3.8/dist-packages/monai/apps/auto3dseg/hpo_gen.py", line 196, in generate
self.algo.export_to_disk(output_folder, task_prefix + task_id, fill_with_datastats=False)
File "/usr/local/lib/python3.8/dist-packages/monai/apps/auto3dseg/bundle_gen.py", line 161, in export_to_disk
self.fill_records = self.fill_template_config(self.data_stats_files, self.output_path, **kwargs)
File "/opt/toolkit/tutorials/monai/auto3dseg/notebooks/work_dir/algorithm_templates/dints/scripts/algo.py", line 227, in fill_template_config
parser.read_config(file_path)
File "/usr/local/lib/python3.8/dist-packages/monai/bundle/config_parser.py", line 320, in read_config
content.update(self.load_config_files(f, **kwargs))
File "/usr/local/lib/python3.8/dist-packages/monai/bundle/config_parser.py", line 424, in load_config_files
for k, v in (cls.load_config_file(i, **kwargs)).items():
File "/usr/local/lib/python3.8/dist-packages/monai/bundle/config_parser.py", line 401, in load_config_file
with open(_filepath) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/toolkit/tutorials/monai/auto3dseg/notebooks/work_dir/dints_0_override_learning_rate_0.0001/configs/hyper_parameters.yaml'
# /work_dir/dints_0_override_learning_rate_0.0001# ls
dints segresnet segresnet2d swinunetr
Expected behavior
work_dir/dints_0_override_learning_rate_0.0001# ls
__init__.py __pycache__ algo_object.pkl configs docs scripts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels