Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run error #146

Closed
HoukJangBNL opened this issue Dec 3, 2021 · 1 comment
Closed

Run error #146

HoukJangBNL opened this issue Dec 3, 2021 · 1 comment

Comments

@HoukJangBNL
Copy link

Hi, I am trying to implement m2stitch to stitch my microscope image, but I got an error as following:
Can you provide some intuition to solve this problem?

AssertionError Traceback (most recent call last)
/var/folders/cq/4b_bv79d3mjgvjwtjl3qfbmc0000gn/T/ipykernel_88498/3576127480.py in
----> 1 result_df1, _ = m2stitch.stitch_images(images, rows, cols)

/usr/local/lib/python3.9/site-packages/m2stitch/stitching.py in stitch_images(images, rows, cols, pou, overlap_prob_uniform_threshold, full_output)
127 grid, r = compute_repeatability(grid, overlap_n, overlap_w, W, H, pou)
128 grid = filter_by_repeatability(grid, r)
--> 129 grid = replace_invalid_translations(grid)
130
131 grid = refine_translations(images, grid, r)

/usr/local/lib/python3.9/site-packages/m2stitch/_stage_model.py in replace_invalid_translations(grid)
327 grid.loc[isna, f"{direction}ncc_second"] = -1
328 for direction, xy in itertools.product(["top", "left"], ["x", "y"]):
--> 329 assert np.all(np.isfinite(grid[f"{direction}
{xy}_second"]))
330
331 return grid

AssertionError:

@yfukai
Copy link
Owner

yfukai commented Feb 13, 2022

I think this may be because of the same reason as #99 and close for now. Please feel free to open if you think this is still not solved @HoukJangBNL !

@yfukai yfukai closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants