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 9332de8 + dd61a52 commit 7f9cab7Copy full SHA for 7f9cab7
bioimageio/core/build_spec/add_weights.py
@@ -64,7 +64,8 @@ def add_weights(
64
raise e
65
finally:
66
# clean up tmp files
67
- os.remove(weight_out)
+ if Path(weight_out).absolute() != Path(weight_uri).absolute():
68
+ os.remove(weight_out)
69
if tmp_arch is not None:
70
os.remove(tmp_arch)
71
# for some reason the weights are also copied to the cwd.
0 commit comments