add export script
Browse files
README.md
CHANGED
@@ -28,11 +28,13 @@ Mean dice = 0.96
|
|
28 |
|
29 |
## commands example
|
30 |
Execute inference:
|
31 |
-
`python -m monai.bundle run evaluator --meta_file metadata.json --config_file inference.json`
|
32 |
Verify the metadata format:
|
33 |
-
`python -m monai.bundle verify_metadata --meta_file metadata.json --filepath schema.json`
|
34 |
Verify the data shape of network:
|
35 |
-
`python -m monai.bundle verify_net_in_out network_def --meta_file metadata.json --config_file inference.json`
|
|
|
|
|
36 |
|
37 |
# Disclaimer
|
38 |
This is an example, not to be used for diagnostic purposes.
|
|
|
28 |
|
29 |
## commands example
|
30 |
Execute inference:
|
31 |
+
`python -m monai.bundle run evaluator --meta_file configs/metadata.json --config_file configs/inference.json`
|
32 |
Verify the metadata format:
|
33 |
+
`python -m monai.bundle verify_metadata --meta_file configs/metadata.json --filepath eval/schema.json`
|
34 |
Verify the data shape of network:
|
35 |
+
`python -m monai.bundle verify_net_in_out network_def --meta_file configs/metadata.json --config_file configs/inference.json`
|
36 |
+
Export checkpoint to TorchScript file:
|
37 |
+
`python -m monai.bundle export network_def --filepath models/model.ts --ckpt_file models/model.pt --meta_file configs/metadata.json --config_file configs/inference.json`
|
38 |
|
39 |
# Disclaimer
|
40 |
This is an example, not to be used for diagnostic purposes.
|