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

ValueError: a must be greater than 0 unless no samples are taken #10

Open
monkeycc opened this issue Sep 29, 2022 · 0 comments
Open

ValueError: a must be greater than 0 unless no samples are taken #10

monkeycc opened this issue Sep 29, 2022 · 0 comments

Comments

@monkeycc
Copy link

python image_mosaic.py
 #### Processing 1.jpg & 2.jpg ######
N: 1122.0, n: 6, M:0.0, p: 0.99, eps: 0.6, delta: 3
Traceback (most recent call last):
  File "image_mosaic.py", line 222, in <module>
    obj.mosaic()
  File "image_mosaic.py", line 40, in mosaic
    inliers_cnt, inliers, outliers, sample_pts, final_H = ransac_obj.run_ransac(correspondence)
  File "D:\Image-Mosaicing\ransac.py", line 115, in run_ransac
    idx, n_idx = self.sample_n_datapts(n_total, self.n)
  File "D:\Image-Mosaicing\ransac.py", line 47, in sample_n_datapts
    idx = np.random.choice(n_total, n, replace=True)
  File "mtrand.pyx", line 909, in numpy.random.mtrand.RandomState.choice
ValueError: a must be greater than 0 unless no samples are taken
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

1 participant