pointnet.pytorch icon indicating copy to clipboard operation
pointnet.pytorch copied to clipboard

I add a python file for convert ModelNet40 format .off to .ply.

Open wuyiulin opened this issue 2 years ago • 4 comments

Hi, @fxia22 When i try training this repo, i found here only can use .ply format, so i add a python file "convert.py" in ModelNet40 folder (use after unzip ModelNet40 dataset.).

This file had already been tested on my machine (i7-11700 8C16T), and i can successful run cls mission after convert ModelNet40 dataset.

In detail, this file also check am i successful convert or not, this function approch by check() in 'convert.py', but it cost so much time (about 900 secs on my machine, the other part about 23 secs.), if you don't wont it happen, you can disable that.

Also, i add a run 'convert.py' command in your README.md, and add 4 .txt you already gave in this page https://github.com/fxia22/pointnet.pytorch/issues/52

If you have any need for convert, pls let me know.

Thanks for releasing the package.

wuyiulin avatar Jan 03 '23 02:01 wuyiulin

Awesome job!! @wuyiulin The converting part works well and fast on my MBP M1 using multi-thread. And the resulting .ply datasets completely works for the model.

tangshuo123321 avatar Apr 19 '23 16:04 tangshuo123321

Hello ,I use this file to convert ModelNet40 format .off to .ply,but I encountered an error with 'IndexError: list index out of range' on line 22 "if lines[0] != 'OFF\n':",could you help me?

tangsankou avatar May 16 '23 11:05 tangsankou

Hello ,I use this file to convert ModelNet40 format .off to .ply,but I encountered an error with 'IndexError: list index out of range' on line 22 "if lines[0] != 'OFF\n':",could you help me?

could u show me the data of crash file(.off)? I guess that file may something wrong?

You can contact me on Telegram @FrankyWu96

wuyiulin avatar May 16 '23 11:05 wuyiulin

Hello ,I use this file to convert ModelNet40 format .off to .ply,but I encountered an error with 'IndexError: list index out of range' on line 22 "if lines[0] != 'OFF\n':",could you help me?

could u show me the data of crash file(.off)? I guess that file may something wrong?

You can contact me on Telegram @FrankyWu96

Thank you for your reply! I found that there was an issue with the dataset I downloaded, and I have resolved it.

tangsankou avatar May 17 '23 08:05 tangsankou