API data models¶
Data models for the nnUNet serve API.
This module defines Pydantic models for inference requests and responses, including support for local data, Orthanc, and file-based inputs.
CascadeMode
¶
CheckpointName
¶
Bases: Enum
Options for checkpoint name. Options are checkpoint_final.pth and checkpoint_best.pth.
Source code in src/nnunet_serve/api_datamodels.py
InferenceFileResponse
pydantic-model
¶
Bases: InferenceResponse
Data model for the inference response from files (when using InferenceRequestFile).
Source code in src/nnunet_serve/api_datamodels.py
InferenceRequest
pydantic-model
¶
Bases: InferenceRequestBase
Data model for the inference request from local data.
Source code in src/nnunet_serve/api_datamodels.py
InferenceRequestBase
pydantic-model
¶
Bases: BaseModel
Data model for the inference request from local data. Supports providing
multiple nnUNet model identifiers (nnunet_id) which in turn allows for
intersection-based filtering of downstream results.
Source code in src/nnunet_serve/api_datamodels.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
InferenceRequestFile
pydantic-model
¶
Bases: InferenceRequestBase
Data model for the inference request from files over a network.
Source code in src/nnunet_serve/api_datamodels.py
InferenceRequestOrthanc
pydantic-model
¶
Bases: InferenceRequestBase
Data model for the inference request from Orthanc.