Skip to content

Commit

Permalink
vista2d net from monai component
Browse files Browse the repository at this point in the history
Signed-off-by: am <am>
  • Loading branch information
am committed Aug 23, 2024
1 parent dfe409c commit 43a84e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 82 deletions.
2 changes: 1 addition & 1 deletion vista2d/configs/hyper_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ infer:

device: "$torch.device(('cuda:' + os.environ.get('LOCAL_RANK', '0')) if torch.cuda.is_available() else 'cpu')"
network_def:
_target_: scripts.cell_sam_wrapper.CellSamWrapper
_target_: monai.networks.nets.cell_sam_wrapper.CellSamWrapper
checkpoint: $os.path.join(@ckpt_path, "sam_vit_b_01ec64.pth")
network: $@network_def.to(@device)

Expand Down
2 changes: 1 addition & 1 deletion vista2d/configs/inference.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"use_amp": true,
"amp_dtype": "$torch.float",
"network_def": {
"_target_": "scripts.cell_sam_wrapper.CellSamWrapper",
"_target_": "monai.networks.nets.cell_sam_wrapper.CellSamWrapper",
"checkpoint": "@sam_ckpt_path"
},
"network": "$@network_def.to(@device)",
Expand Down
80 changes: 0 additions & 80 deletions vista2d/scripts/cell_sam_wrapper.py

This file was deleted.

0 comments on commit 43a84e7

Please sign in to comment.