achataigner commited on
Commit
56e49aa
·
verified ·
1 Parent(s): 6ccfbd6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -88,10 +88,10 @@ snapshot_download(repo_id="aagatti/nnunet_knee", local_dir="./nnunet_knee_models
88
  from scripts.inference import KneeSegmentationInference
89
 
90
  # Initialize inference
91
- inference = KneeSegmentationInference(model_path="./nnunet_knee_models/models")
92
 
93
  # Run segmentation
94
- result = inference.predict("knee_mri.nii.gz", "segmentation_output.nii.gz")
95
  ```
96
 
97
  ### Command Line Usage
@@ -104,7 +104,7 @@ python scripts/inference.py --input knee_mri.nii.gz --output segmentation.nii.gz
104
 
105
  For complete setup with testing and validation:
106
 
107
- 1. **Clone the inference package**: [nnunet_knee inference code](https://github.com/your-repo/nnunet_knee)
108
  2. **Download models**: Use the code above or HuggingFace CLI
109
  3. **Run tests**: Validate with provided test data and DSC metrics
110
 
 
88
  from scripts.inference import KneeSegmentationInference
89
 
90
  # Initialize inference
91
+ inference = KneeSegmentationInference(model_dir="./nnunet_knee_models/models/Dataset500_KneeMRI/nnUNetTrainer__nnUNetResEncUNetMPlans__3d_cascade_fullres")
92
 
93
  # Run segmentation
94
+ result = inference.predict("./nnunet_knee_models/test_data/test_image.nii.gz", "segmentation_output.nii.gz")
95
  ```
96
 
97
  ### Command Line Usage
 
104
 
105
  For complete setup with testing and validation:
106
 
107
+ 1. **Clone the inference package**: [nnunet_knee inference code](https://github.com/gattia/nnunet_knee)
108
  2. **Download models**: Use the code above or HuggingFace CLI
109
  3. **Run tests**: Validate with provided test data and DSC metrics
110