Git Product home page Git Product logo

Comments (5)

Yang7879 avatar Yang7879 commented on August 16, 2024

Hi @bonbonjour , it's simple to get it.

from plyfile import PlyData, PlyElement

scene_full_3d_mesh = PlyData.read(in_raw_scans_folder+scene_name+'/'+scene_name+'_vh_clean_2.ply')

scene_full_3d_pc = np.asarray((scene_full_3d_mesh['vertex'].data).tolist(), dtype=np.float32).reshape([-1, 7]) ## the 7 channels represent [ x-y-z-r-g-b-a]

from 3d-bonet.

bonbonjour avatar bonbonjour commented on August 16, 2024

thanks for your help! and there is another problem, I have trouble in generating ins label, I use "python export_train_mesh_for_evaluation.py --scan_path /home/data/scannetv2/scans/scene0000_00 --output_file /home/data/scannetv2/output.txt --label_map_file /home/data/scannetv2/scannetv2-labels.combined.tsv --type instance" to get the ins lable, the output.txt is like this(67 lines in all):
pred_mask/output_1.txt 9 1.000000
pred_mask/output_2.txt 9 1.000000
pred_mask/output_3.txt 7 1.000000
pred_mask/output_4.txt 12 1.000000
pred_mask/output_5.txt 38 1.000000
pred_mask/output_6.txt 16 1.000000
pred_mask/output_7.txt 16 1.000000
pred_mask/output_8.txt 14 1.000000
pred_mask/output_9.txt 3 1.000000
pred_mask/output_10.txt 2 1.000000
under pred_mask folder, there are output_1.txt-- output_72.txt.
after obtaining these files, I don't know how to get the final ins label file, can you please help me

from 3d-bonet.

bonbonjour avatar bonbonjour commented on August 16, 2024

can anybody please help me?

from 3d-bonet.

Yang7879 avatar Yang7879 commented on August 16, 2024

Hi @bonbonjour , the script "export_train_mesh_for_evaluation.py" is to generate formatted results for ScanNet online evaluation. If you want to generate the ins labels for training the network, check out the script below.

https://github.com/Yang7879/3D-BoNet/blob/master/helper_data_scannet_prepare.py

from 3d-bonet.

bonbonjour avatar bonbonjour commented on August 16, 2024

thanks very much!

from 3d-bonet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.