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

RunTimeError in Step6 #51

Open
xiaoru222 opened this issue Jun 12, 2020 · 14 comments
Open

RunTimeError in Step6 #51

xiaoru222 opened this issue Jun 12, 2020 · 14 comments

Comments

@xiaoru222
Copy link

@F2Wang
when I try "python create_label_files.py all", I got an error below

timer is assigned class label 0.
0%| | 0/55 [00:00<?, ?it/s]
Traceback (most recent call last):
File "create_label_files.py", line 128, in
sample_points = mesh_copy.sample(10000)
AttributeError: 'PointCloud' object has no attribute 'sample'

Hope someone gives some hints

@nihar0602
Copy link

@xiaoru222 were you able to solve this?

@chengm0-0
Copy link

hi, did you solve the problem

@nihar0602
Copy link

@chengm0-0,
HI Cheng, I was able to solve this issue.

@hyoon970
Copy link

@nihar0602
Hello. I got the same problem. How could you solve it?

@Ultraopxt
Copy link

@chengm0-0,
HI Cheng, I was able to solve this issue.

HI Nihar,I got the same question.Could you please help me ?

@Ultraopxt
Copy link

@nihar0602
Hello. I got the same problem. How could you solve it?

Hi hyoon970,I got the same question, have you solved the problem?

@hyoon970
Copy link

hyoon970 commented May 31, 2021

@nihar0602
Hello. I got the same problem. How could you solve it?

Hi hyoon970,I got the same question, have you solved the problem?

@qingweihk

Hello, I don't remember it exactly, but I solved it.

After ply processing with Meshlab, may be you saved the ply file with another name, not 'registeredScene.ply'.

But create_label_files.py read 'registeredScene.ply' file.

So you should change the original ply file's name into another one, like 'registeredScene_original.ply' and rename the processed ply file as 'registeredScene.ply'.

If you can't solve your problem with solution above, reply to me anytime.

Thanks and regards,

H.Yoon

@Ultraopxt
Copy link

@nihar0602
Hello. I got the same problem. How could you solve it?

Hi hyoon970,I got the same question, have you solved the problem?

@qingweihk

Hello, I don't remember it exactly, but I solved it.

After ply processing with Meshlab, may be you saved the ply file with another name, not 'registeredScene.ply'.

But create_label_files.py read 'registeredScene.ply' file.

So you should change the original ply file's name into another one, like 'registeredScene_original.ply' and rename the processed ply file as 'registeredScene.ply'.

If you can't solve your problem with solution above, reply to me anytime.

Thanks and regards,

H.Yoon

Thanks very much.

I wonder after Meshlab process:the 'registeredScene.ply' should be 'registeredScene.obj? Cause The end product is a triangular mesh instead of the registered pointcloud( the repo's instruction at part 5)

@hyoon970
Copy link

@nihar0602
Hello. I got the same problem. How could you solve it?

Hi hyoon970,I got the same question, have you solved the problem?

@qingweihk
Hello, I don't remember it exactly, but I solved it.
After ply processing with Meshlab, may be you saved the ply file with another name, not 'registeredScene.ply'.
But create_label_files.py read 'registeredScene.ply' file.
So you should change the original ply file's name into another one, like 'registeredScene_original.ply' and rename the processed ply file as 'registeredScene.ply'.
If you can't solve your problem with solution above, reply to me anytime.
Thanks and regards,
H.Yoon

Thanks very much.

I wonder after Meshlab process:the 'registeredScene.ply' should be 'registeredScene.obj? Cause The end product is a triangular mesh instead of the registered pointcloud( the repo's instruction at part 5)

No, I used ply file and succeed. I don't know much about Meshlab, so I just followed the Youtube video the author uploaded.

@Ultraopxt
Copy link

@nihar0602
Hello. I got the same problem. How could you solve it?

Hi hyoon970,I got the same question, have you solved the problem?

@qingweihk
Hello, I don't remember it exactly, but I solved it.
After ply processing with Meshlab, may be you saved the ply file with another name, not 'registeredScene.ply'.
But create_label_files.py read 'registeredScene.ply' file.
So you should change the original ply file's name into another one, like 'registeredScene_original.ply' and rename the processed ply file as 'registeredScene.ply'.
If you can't solve your problem with solution above, reply to me anytime.
Thanks and regards,
H.Yoon

Thanks very much.
I wonder after Meshlab process:the 'registeredScene.ply' should be 'registeredScene.obj? Cause The end product is a triangular mesh instead of the registered pointcloud( the repo's instruction at part 5)

No, I used ply file and succeed. I don't know much about Meshlab, so I just followed the Youtube video the author uploaded.

Thanks very much!

@lzhhh6161
Copy link

@nihar0602
Hello. I got the same problem. How could you solve it?

Hi hyoon970,I got the same question, have you solved the problem?

@qingweihk
Hello, I don't remember it exactly, but I solved it.
After ply processing with Meshlab, may be you saved the ply file with another name, not 'registeredScene.ply'.
But create_label_files.py read 'registeredScene.ply' file.
So you should change the original ply file's name into another one, like 'registeredScene_original.ply' and rename the processed ply file as 'registeredScene.ply'.
If you can't solve your problem with solution above, reply to me anytime.
Thanks and regards,
H.Yoon

Thanks very much.
I wonder after Meshlab process:the 'registeredScene.ply' should be 'registeredScene.obj? Cause The end product is a triangular mesh instead of the registered pointcloud( the repo's instruction at part 5)

No, I used ply file and succeed. I don't know much about Meshlab, so I just followed the Youtube video the author uploaded.

Thanks very much!

hi,I got the same question, have you solved the problem?

@hyoon970
Copy link

@lzhhh6161
Solutions above do not work?

@forbeauty
Copy link

forbeauty commented Aug 31, 2022

replace the following sentence:

       sample_points = mesh_copy.sample(10000)

into:

        dellist = [j for j in range(0, len(mesh_copy.vertices))]
        dellist = random.sample(dellist, len(mesh_copy.vertices) - 10000)
        sample_points = np.delete(mesh_copy.vertices, dellist, axis=0)

@jefferson-norberto
Copy link

Thanks. It's working here.

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

8 participants