-
Notifications
You must be signed in to change notification settings - Fork 11
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: assert not best_model is None #99
Comments
Hello @pmj110119, thanks for your report! The original algorithm (4.1.2 Compute Stage Repeatability in the original paper) assumes that the displacements between tiles follow a Gaussian distribution, and I think this error means this assumption is not working well with your data. I'll make the parameter relevant to this assumption adjustable and then you might be able to solve the problem by easing the assumption. Please wait for an update! |
Hi @pmj110119, I updated the program (version 0.2.0, you can update it with |
Thank you for your reply and update! But my data will still report errors :
My codeI tried many times but still failed, maybe my understanding of Example Code is wrong? My test data is a 2x22 grid image(row snake scan) with an overlap of 10%, so I generated two lists to represent rows and cols:
And my image is loaded as ndarray, which shape is Then I used the interface and reported the initial error:
|
Hi, @pmj110119, thank you for your investigation! What you're doing looks quite correct as far as I understand, and the error |
If it would be the case and if you wouldn't mind, the contents of |
Thank you for your suggestions and helpfulness, your reply is so fast! But I tried to reverse row and col, and the result did not change. |
I'm sorry to be late @pmj110119, but I finally found the reason! the source of the problem was as follows:
I'll make this threshold adjustable (in a few days), and hopefully, let the user select the similarity measure in the future. |
Thanks for your reply. |
Unfortunately, the problem seems to be more complicated than I thought, and this week I might not be able to take time to solve it as I think I also should rewrite a part of the algorithm and refactor variables for clarity. Your image looks fine and I think it's important to make the program work for that case, so surely continue to work on it. Please be patient for a while... |
That's fine. For my own project, I used alternative sub-optimal solutions for the time being. So you don't need to be too urgent because of me, just follow your rhythm. I will continue to pay attention and look forward to seeing this repository being improved in the future ;-) |
Hi there, |
Sorry, @HoukJangBNL, I started to work to improve the algorithm for more stability and easy-to-interpret errors, but unfortunately, my time to spend on this is limited, and it might take up to a month or so. Please be patient! You might also find ASHLAR useful. |
Hi, @HoukJangBNL and @pmj110119 I somehow updated the algorithm for more robust parameter findings. Note: I changed the input/output dimension for the sake of clarity. Still backward-compatible I believe but please check the example if you get stuck. |
I found some bugs, please use |
Hello, I tried to stitch on my images and had some problems. Do you know under what circumstances will the following error occur?
The text was updated successfully, but these errors were encountered: