We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc5a3a6 + 7648657 commit 06f6731Copy full SHA for 06f6731
bioimageio/core/build_spec/build_model.py
@@ -361,11 +361,13 @@ def build_model(
361
root: optional root path for relative paths. This can be helpful when building a spec from another model spec.
362
weight_kwargs: keyword arguments for this weight type, e.g. "tensorflow_version".
363
"""
364
+ if root is None:
365
+ root = "."
366
+ root = Path(root)
367
+
368
#
369
# generate the model specific fields
370
- if root is not None:
- root = Path(root)
371
372
assert len(test_inputs)
373
assert len(test_outputs)
0 commit comments