Skip to content

Commit e846d30

Browse files
Fix bug in 3d embedding precomputation (without zarr caching)
1 parent 6bd8753 commit e846d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micro_sam/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _compute_3d(input_, predictor):
261261
for z_slice in tqdm(input_, desc="Precompute Image Embeddings"):
262262
predictor.reset_image()
263263

264-
image = _to_image(input_)
264+
image = _to_image(z_slice)
265265
predictor.set_image(image)
266266
embedding = predictor.get_image_embedding()
267267
features.append(embedding[None])

0 commit comments

Comments
 (0)