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 4f67ddd + fdfa8ff commit fdb9e5fCopy full SHA for fdb9e5f
bioimageio/core/build_spec/add_weights.py
@@ -42,7 +42,7 @@ def add_weights(
42
# copy the weight path to the input model's root, otherwise it will
43
# not be found when packaging the new model
44
weight_out = os.path.join(model.root_path, Path(weight_uri).name)
45
- if Path(weight_out) != Path(weight_uri):
+ if Path(weight_out).absolute() != Path(weight_uri).absolute():
46
copyfile(weight_uri, weight_out)
47
48
new_weights, tmp_arch = _get_weights(
0 commit comments