File tree 1 file changed +2
-1
lines changed
bioimageio/core/prediction_pipeline
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ def create_prediction_pipeline(
183
183
dataset_for_initial_statistics : Iterable [Sequence [xr .DataArray ]] = tuple (),
184
184
update_dataset_stats_after_n_samples : Optional [int ] = None ,
185
185
update_dataset_stats_for_n_samples : int = float ("inf" ),
186
+ model_adapter : Optional [ModelAdapter ] = None ,
186
187
) -> PredictionPipeline :
187
188
"""
188
189
Creates prediction pipeline which includes:
@@ -192,7 +193,7 @@ def create_prediction_pipeline(
192
193
* computation of output statistics
193
194
* postprocessing
194
195
"""
195
- model_adapter : ModelAdapter = create_model_adapter (
196
+ model_adapter : ModelAdapter = model_adapter or create_model_adapter (
196
197
bioimageio_model = bioimageio_model , devices = devices , weight_format = weight_format
197
198
)
198
199
You can’t perform that action at this time.
0 commit comments