Skip to content

How to resolve the error when eval mesh? #4

@Pyn-hust

Description

@Pyn-hust

Great code! But when I generate mesh, I get the following error. I found that when the mesh has holes, a memory explosion occurs or an error is reported as follows. But I'm not sure if this error is caused by an empty mesh. Is there a way for you to solve this problem?

compute data2stl: 67%|###############################################################################3 | 6/9 [00:02<00:01, 1.68it/s]Traceback (most recent call last):
File "eval.py", line 193, in
accuracy, completeness, overall = run(args, mesh_path)
File "eval.py", line 113, in run
dist_d2s, idx_d2s = nn_engine.kneighbors(data_in_obs, n_neighbors=1, return_distance=True)
File "/mnt/A/hust_pyn/anaconda3/envs/meshtest/lib/python3.6/site-packages/sklearn/neighbors/_base.py", line 670, in kneighbors
X = check_array(X, accept_sparse='csr')
File "/mnt/A/hust_pyn/anaconda3/envs/meshtest/lib/python3.6/site-packages/sklearn/utils/validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "/mnt/A/hust_pyn/anaconda3/envs/meshtest/lib/python3.6/site-packages/sklearn/utils/validation.py", line 729, in check_array
context))
ValueError: Found array with 0 sample(s) (shape=(0, 3)) while a minimum of 1 is required.
compute data2stl: 67%|###############################################################################3 | 6/9 [00:19<00:09, 3.21s/it]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions