Skip to content

Commit

Permalink
Forgot to write the new config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathijs de Boer committed Dec 4, 2023
1 parent 7487021 commit fef8334
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions nnunetv2/model_sharing/onnx_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,28 +158,7 @@ def export_onnx_model(
}

json.dump(
{
"dataset_name": dataset_name,
"configuration": c,
"fold": fold,
"checkpoint_name": checkpoint_name,
"configuration_manager": {
k: config.configuration[k]
for k in [
"patch_size",
"spacing",
"normalization_schemes",
# These are mostly interesting for certification
# uses, but they are also useful for debugging.
"UNet_class_name",
"UNet_base_num_features",
"unet_max_num_features",
"conv_kernel_sizes",
"pool_op_kernel_sizes",
"num_pool_per_axis",
]
},
},
config_dict,
f,
indent=4,
)
Expand Down

0 comments on commit fef8334

Please sign in to comment.