ObjectDatasetTools icon indicating copy to clipboard operation
ObjectDatasetTools copied to clipboard

RunTimeError in Step6

Open xiaoru222 opened this issue 4 years ago • 14 comments

@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

xiaoru222 avatar Jun 12 '20 01:06 xiaoru222

@xiaoru222 were you able to solve this?

nihar0602 avatar Apr 12 '21 06:04 nihar0602

hi, did you solve the problem

chengm0-0 avatar Apr 14 '21 02:04 chengm0-0

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

nihar0602 avatar Apr 22 '21 22:04 nihar0602

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

hyoon970 avatar Apr 26 '21 07:04 hyoon970

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

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

Ultraopxt avatar May 31 '21 08:05 Ultraopxt

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

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

Ultraopxt avatar May 31 '21 08:05 Ultraopxt

@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

hyoon970 avatar May 31 '21 08:05 hyoon970

@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)

Ultraopxt avatar May 31 '21 09:05 Ultraopxt

@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.

hyoon970 avatar May 31 '21 10:05 hyoon970

@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!

Ultraopxt avatar May 31 '21 10:05 Ultraopxt

@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?

lzhhh6161 avatar Jun 09 '21 10:06 lzhhh6161

@lzhhh6161 Solutions above do not work?

hyoon970 avatar Jun 11 '21 05:06 hyoon970

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)

forbeauty avatar Aug 31 '22 02:08 forbeauty

Thanks. It's working here.

jefferson-norberto avatar Sep 09 '22 12:09 jefferson-norberto