Skip to content

Commit 50980fe

Browse files
committed
use sha256 in download (not just the source url)
1 parent 66665c5 commit 50980fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioimageio/core/model_adapters/_pytorch_model_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242

4343
self._primary_device = self._devices[0]
4444
state: Any = torch.load(
45-
download(weights.source).path,
45+
download(weights).path,
4646
map_location=self._primary_device, # pyright: ignore[reportUnknownArgumentType]
4747
)
4848
self._network.load_state_dict(state)

0 commit comments

Comments
 (0)