Skip to content

Commit

Permalink
predict_single_npy_array: Copy warning from inference/readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacwnewton committed Mar 23, 2024
1 parent 1b70167 commit e9ea09f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nnunetv2/inference/predict_from_raw_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ def predict_single_npy_array(self, input_image: np.ndarray, image_properties: di
output_file_truncated: str = None,
save_or_return_probabilities: bool = False):
"""
WARNING: SLOW. ONLY USE THIS IF YOU CANNOT GIVE NNUNET MULTIPLE IMAGES AT ONCE FOR SOME REASON.
input_image must use SimpleITK axis ordering!
(NB: if array comes from a nibabel-loaded image, you must swap the
axes of both the array *and* the spacing from [x,y,z] to [z,y,x]!)
Expand Down

0 comments on commit e9ea09f

Please sign in to comment.