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: Found array with 0 sample(s) (shape=(0, 3)) while a minimum of 1 is required by DBSCAN #41

Open
cmsbuptvisoin opened this issue May 15, 2024 · 4 comments

Comments

@cmsbuptvisoin
Copy link

args.input_dir_path= H:\teeth\3DTeethSeg\ToothGroupNetwork-main\in_obj
args.split_txt_path= test_id.txt
stl_path_ls= ['H:\teeth\3DTeethSeg\ToothGroupNetwork-main\in_obj\00OMSZGW\00OMSZGW_lower.obj', 'H:\teeth\3DTeethSeg\ToothGroupNetwork-main\in_obj\00OMSZGW\00OMSZGW_upper.obj']
Processing: 0 : H:\teeth\3DTeethSeg\ToothGroupNetwork-main\in_obj\00OMSZGW\00OMSZGW_lower.obj
Found array with 0 sample(s) (shape=(0, 3)) while a minimum of 1 is required by DBSCAN.
Traceback (most recent call last):
File "h:\teeth\3DTeethSeg\ToothGroupNetwork-main\predict_utils.py", line 97, in predict
pred_result = self.chl_pipeline(scan_path)
File "h:\teeth\3DTeethSeg\ToothGroupNetwork-main\inference_pipelines\inference_pipeline_tgn.py", line 46, in call
first_results = self.get_first_module_results(input_cuda_feats, self.first_module)
File "h:\teeth\3DTeethSeg\ToothGroupNetwork-main\inference_pipelines\inference_pipeline_tgn.py", line 170, in get_first_module_results
output = base_model([points])
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "h:\teeth\3DTeethSeg\ToothGroupNetwork-main\models\modules\grouping_network_module.py", line 65, in forward
fg_points_labels_ls = ou.get_clustering_labels(b_moved_points, whole_cls_1)
File "h:\teeth\3DTeethSeg\ToothGroupNetwork-main\ops_utils.py", line 98, in get_clustering_labels
clustering = DBSCAN(eps=0.03, min_samples=30).fit(moved_points[super_point_cond, :], 3)
File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py", line 1151, in wrapper
return fit_method(estimator, *args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\cluster_dbscan.py", line 370, in fit
X = self._validate_data(X, accept_sparse="csr")
File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py", line 604, in _validate_data
out = check_array(X, input_name="X", **check_params)
File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 969, in check_array
raise ValueError(
ValueError: Found array with 0 sample(s) (shape=(0, 3)) while a minimum of 1 is required by DBSCAN.

@liiad
Copy link

liiad commented May 17, 2024

I had the same problem,to adjust eps and min_samples not worked!

@hongpengxu779
Copy link

我遇到了同样的问题,调整 eps min_samples不起作用!

您好,你们解决这个问题了吗?

@liiad
Copy link

liiad commented Jul 26, 2024 via email

@limhoyeon
Copy link
Owner

would you check the issue #42

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

4 participants