Skip to content

Commit 4ce846c

Browse files
Merge pull request #82 from computational-cell-analytics/fix-3d-precomputation
Fix bug in 3d embedding precomputation (without zarr caching)
2 parents 6bd8753 + e846d30 commit 4ce846c

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)