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 cad7c8f + 8a72e87 commit bf82e31Copy full SHA for bf82e31
micro_sam/util.py
@@ -560,7 +560,7 @@ def set_precomputed(
560
i: Index for the image data. Required if `image` has three spatial dimensions
561
or a time dimension and two spatial dimensions.
562
"""
563
- device = "cuda" if torch.cuda.is_available() else "cpu"
+ device = predictor.device
564
features = image_embeddings["features"]
565
566
assert features.ndim in (4, 5)
0 commit comments