Skip to content

Commit

Permalink
correct typo in auto3dseg (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyang0122 authored Jan 5, 2023
1 parent 07da7ad commit b1198c4
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ finetune:
validate:
ckpt_name: "$@bundle_root + '/model_fold' + str(@fold) + '/best_metric_model.pt'"
save_mask: true
ouptut_path: "$@bundle_root + '/prediction_fold' + str(@fold)"
output_path: "$@bundle_root + '/prediction_fold' + str(@fold)"

# inference
infer:
ckpt_name: "$@bundle_root + '/model_fold' + str(@fold) + '/best_metric_model.pt'"
fast: false
data_list_key: testing
ouptut_path: "$@bundle_root + '/prediction_' + @infer#data_list_key"
output_path: "$@bundle_root + '/prediction_' + @infer#data_list_key"
2 changes: 1 addition & 1 deletion auto3dseg/algorithm_templates/dints/scripts/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, config_file: Optional[Union[str, Sequence[str]]] = None, **ov

ckpt_name = parser.get_parsed_content("infer")["ckpt_name"]
data_list_key = parser.get_parsed_content("infer")["data_list_key"]
output_path = parser.get_parsed_content("infer")["ouptut_path"]
output_path = parser.get_parsed_content("infer")["output_path"]

if not os.path.exists(output_path):
os.makedirs(output_path, exist_ok=True)
Expand Down
2 changes: 1 addition & 1 deletion auto3dseg/algorithm_templates/dints/scripts/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run(config_file: Optional[Union[str, Sequence[str]]] = None, **override):
softmax = parser.get_parsed_content("training#softmax")

ckpt_name = parser.get_parsed_content("validate")["ckpt_name"]
output_path = parser.get_parsed_content("validate")["ouptut_path"]
output_path = parser.get_parsed_content("validate")["output_path"]
save_mask = parser.get_parsed_content("validate")["save_mask"]

if not os.path.exists(output_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ finetune:
validate:
ckpt_name: "$@bundle_root + '/model_fold' + str(@fold) + '/best_metric_model.pt'"
save_mask: true
ouptut_path: "$@bundle_root + '/prediction_fold' + str(@fold)"
output_path: "$@bundle_root + '/prediction_fold' + str(@fold)"

# inference
infer:
ckpt_name: "$@bundle_root + '/model_fold' + str(@fold) + '/best_metric_model.pt'"
fast: false
data_list_key: testing
ouptut_path: "$@bundle_root + '/prediction_' + @infer#data_list_key"
output_path: "$@bundle_root + '/prediction_' + @infer#data_list_key"
2 changes: 1 addition & 1 deletion auto3dseg/algorithm_templates/segresnet2d/scripts/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, config_file: Optional[Union[str, Sequence[str]]] = None, **ov

ckpt_name = parser.get_parsed_content("infer")["ckpt_name"]
data_list_key = parser.get_parsed_content("infer")["data_list_key"]
output_path = parser.get_parsed_content("infer")["ouptut_path"]
output_path = parser.get_parsed_content("infer")["output_path"]

if not os.path.exists(output_path):
os.makedirs(output_path, exist_ok=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run(config_file: Optional[Union[str, Sequence[str]]] = None, **override):
softmax = parser.get_parsed_content("softmax")

ckpt_name = parser.get_parsed_content("validate")["ckpt_name"]
output_path = parser.get_parsed_content("validate")["ouptut_path"]
output_path = parser.get_parsed_content("validate")["output_path"]
save_mask = parser.get_parsed_content("validate")["save_mask"]

if not os.path.exists(output_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ infer:
ckpt_name: $@bundle_root + '/model_fold' + str(@fold) + '/best_metric_model.pt'
data_list_key: testing
fast: false
ouptut_path: $@bundle_root + '/prediction_' + @infer#data_list_key
output_path: $@bundle_root + '/prediction_' + @infer#data_list_key
input_channels: 1
learning_rate: 0.0001
loss:
Expand Down Expand Up @@ -62,5 +62,5 @@ resample_to_spacing: null
softmax: true
validate:
ckpt_name: $@bundle_root + '/model_fold' + str(@fold) + '/best_metric_model.pt'
ouptut_path: $@bundle_root + '/prediction_fold' + str(@fold)
output_path: $@bundle_root + '/prediction_fold' + str(@fold)
save_mask: true
2 changes: 1 addition & 1 deletion auto3dseg/algorithm_templates/swinunetr/scripts/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, config_file: Optional[Union[str, Sequence[str]]] = None, **ov

ckpt_name = parser.get_parsed_content("infer")["ckpt_name"]
data_list_key = parser.get_parsed_content("infer")["data_list_key"]
output_path = parser.get_parsed_content("infer")["ouptut_path"]
output_path = parser.get_parsed_content("infer")["output_path"]

if not os.path.exists(output_path):
os.makedirs(output_path, exist_ok=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run(config_file: Optional[Union[str, Sequence[str]]] = None, **override):
softmax = parser.get_parsed_content("softmax")

ckpt_name = parser.get_parsed_content("validate")["ckpt_name"]
output_path = parser.get_parsed_content("validate")["ouptut_path"]
output_path = parser.get_parsed_content("validate")["output_path"]
save_mask = parser.get_parsed_content("validate")["save_mask"]

if not os.path.exists(output_path):
Expand Down

0 comments on commit b1198c4

Please sign in to comment.