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

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wuyiulin
Copy link

@wuyiulin wuyiulin commented Jan 3, 2023

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 #52

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

Thanks for releasing the package.

Convert .ModelNet40 off to .ply.
rename.py to convert.py
add useage in README.md for convert.py
update convert arg & add tree struct, usage in readme.
@tangshuo123321
Copy link

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.

@tangsankou
Copy link

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?

@wuyiulin
Copy link
Author

wuyiulin commented May 16, 2023

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

@tangsankou
Copy link

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.

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

Successfully merging this pull request may close these issues.

3 participants