File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
bioimageio/core/prediction_pipeline Expand file tree Collapse file tree 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(
183183 dataset_for_initial_statistics : Iterable [Sequence [xr .DataArray ]] = tuple (),
184184 update_dataset_stats_after_n_samples : Optional [int ] = None ,
185185 update_dataset_stats_for_n_samples : int = float ("inf" ),
186+ model_adapter : Optional [ModelAdapter ] = None ,
186187) -> PredictionPipeline :
187188 """
188189 Creates prediction pipeline which includes:
@@ -192,7 +193,7 @@ def create_prediction_pipeline(
192193 * computation of output statistics
193194 * postprocessing
194195 """
195- model_adapter : ModelAdapter = create_model_adapter (
196+ model_adapter : ModelAdapter = model_adapter or create_model_adapter (
196197 bioimageio_model = bioimageio_model , devices = devices , weight_format = weight_format
197198 )
198199
You can’t perform that action at this time.
0 commit comments