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

<class 'ValueError'> Found array with 0 sample(s) (shape=(0, 2)) while a minimum of 1 is required by NearestNeighbors. #207

Open
raymondren1982 opened this issue Jun 10, 2024 · 5 comments

Comments

@raymondren1982
Copy link

Hi,
I run follow command in powershell, there's error as title, anyone can help?

python data_gen/utils/process_video/extract_segment_imgs.py --ds_name=nerf --vid_dir=data/raw/videos/May.mp4

@raymondren1982
Copy link
Author

没有人看一下吗,我用的是windows powershell,有没有大佬帮忙看看

@raymondren1982
Copy link
Author

knn 中这里出错,
bg_xys = np.stack(np.nonzero(~bc_pixs)).transpose()
fg_xys = np.stack(np.nonzero(bc_pixs)).transpose()
nbrs = NearestNeighbors(n_neighbors=1, algorithm='kd_tree').fit(fg_xys)

1 similar comment
@raymondren1982
Copy link
Author

knn 中这里出错,
bg_xys = np.stack(np.nonzero(~bc_pixs)).transpose()
fg_xys = np.stack(np.nonzero(bc_pixs)).transpose()
nbrs = NearestNeighbors(n_neighbors=1, algorithm='kd_tree').fit(fg_xys)

@raymondren1982
Copy link
Author

这个问题已经解决了

@zhoubowen-sky
Copy link

这个问题已经解决了

请教下,怎么解决的呀?

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