@@ -121,7 +121,7 @@ class AutoRunner:
121121 runner = AutoRunner(work_dir=work_dir, input=input, algos=algos)
122122 runner.run()
123123
124- - User can specify a a local folder with algorithms templates and run AutoRunner:
124+ - User can specify a local folder with algorithms templates and run AutoRunner:
125125
126126 .. code-block:: python
127127
@@ -414,23 +414,23 @@ def set_gpu_customization(
414414 parameters for each bundleAlgo based on gpus. Custom parameters are obtained through dummy
415415 training to simulate the actual model training process and hyperparameter optimization (HPO)
416416 experiments.
417- gpu_customization_specs (optinal ): the dictionary to enable users overwrite the HPO settings. user can
417+ gpu_customization_specs (optional ): the dictionary to enable users overwrite the HPO settings. user can
418418 overwrite part of variables as follows or all of them. The structure is as follows.
419419
420420 .. code-block:: python
421421
422422 gpu_customization_specs = {
423- 'ALOG ': {
423+ 'ALGO ': {
424424 'num_trials': 6,
425425 'range_num_images_per_batch': [1, 20],
426426 'range_num_sw_batch_size': [1, 20]
427427 }
428428 }
429429
430- ALGO: the name of algorithm. It could be one of algorithm names (e.g., 'dints') or 'unversal ' which
430+ ALGO: the name of algorithm. It could be one of algorithm names (e.g., 'dints') or 'universal ' which
431431 would apply changes to all algorithms. Possible options are
432432
433- - {``"unversal "``, ``"dints"``, ``"segresnet"``, ``"segresnet2d"``, ``"swinunetr"``}.
433+ - {``"universal "``, ``"dints"``, ``"segresnet"``, ``"segresnet2d"``, ``"swinunetr"``}.
434434
435435 num_trials: the number of HPO trials/experiments to run.
436436 range_num_images_per_batch: the range of number of images per mini-batch.
@@ -468,7 +468,7 @@ def set_training_params(self, params: dict[str, Any] | None = None) -> None:
468468 self .train_params = deepcopy (params ) if params is not None else {}
469469 if "CUDA_VISIBLE_DEVICES" in self .train_params :
470470 warnings .warn (
471- "CUDA_VISIBLE_DEVICES is deprecated from 'set_training_params'. Use 'set_device_info' intead ." ,
471+ "CUDA_VISIBLE_DEVICES is deprecated from 'set_training_params'. Use 'set_device_info' instead ." ,
472472 DeprecationWarning ,
473473 )
474474
@@ -483,7 +483,7 @@ def set_device_info(
483483 Set the device related info
484484
485485 Args:
486- cuda_visible_device : define GPU ids for data analyzer, training, and ensembling.
486+ cuda_visible_devices : define GPU ids for data analyzer, training, and ensembling.
487487 List of GPU ids [0,1,2,3] or a string "0,1,2,3".
488488 Default using env "CUDA_VISIBLE_DEVICES" or all devices available.
489489 num_nodes: number of nodes for training and ensembling.
@@ -497,7 +497,7 @@ def set_device_info(
497497 - single node multi-GPU running "torchrun --nnodes=1 --nproc_per_node=2 "
498498
499499 If user define this prefix, please make sure --nproc_per_node matches cuda_visible_device or
500- os.env['CUDA_VISIBLE_DEVICES]. Also always set --nnodes=1. Set num_nodes for multi-node.
500+ os.env['CUDA_VISIBLE_DEVICES' ]. Also always set --nnodes=1. Set num_nodes for multi-node.
501501 """
502502 self .device_setting : dict [str , Any ] = {}
503503 if cuda_visible_devices is None :
@@ -527,14 +527,14 @@ def set_device_info(
527527 self .device_setting ["CMD_PREFIX" ] = cmd_prefix
528528
529529 if cmd_prefix is not None :
530- logger .info (f"Using user defined command running prefix { cmd_prefix } , will overide other settings" )
530+ logger .info (f"Using user defined command running prefix { cmd_prefix } , will override other settings" )
531531
532532 def set_ensemble_method (self , ensemble_method_name : str = "AlgoEnsembleBestByFold" , ** kwargs : Any ) -> None :
533533 """
534534 Set the bundle ensemble method name and parameters for save image transform parameters.
535535
536536 Args:
537- params : the name of the ensemble method. Only two methods are supported "AlgoEnsembleBestN"
537+ ensemble_method_name : the name of the ensemble method. Only two methods are supported "AlgoEnsembleBestN"
538538 and "AlgoEnsembleBestByFold".
539539 kwargs: the keyword arguments used to define the ensemble method. Currently only ``n_best`` for
540540 ``AlgoEnsembleBestN`` is supported.
0 commit comments