Giter Site home page Giter Site logo

Comments (2)

limhoyeon avatar limhoyeon commented on July 30, 2024

Can you visualize the sampled points(preprocessed .npy files)?

from toothgroupnetwork.

Frq-F avatar Frq-F commented on July 30, 2024

Hello ,I meet this problem too. when I try to run preprocess_data.py to check the sampled points

(torch1.10) E:\ToothGroupNetwork-main>python E:\ToothGroupNetwork-main\ToothGroupNetwork-main\preprocess_data.py
0 E:\ToothGroupNetwork-main\test_results\data\116429353_shell_teethup_l.stl
Traceback (most recent call last):
File "E:\ToothGroupNetwork-main\ToothGroupNetwork-main\preprocess_data.py", line 46, in
vertices, org_mesh = gu.read_txt_obj_ls(stl_path_ls[i], ret_mesh=True, use_tri_mesh=False)
File "E:\ToothGroupNetwork-main\ToothGroupNetwork-main\gen_utils.py", line 213, in read_txt_obj_ls
line = f.readline().split()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 80: illegal multibyte sequence
And I modify the code
vertices, org_mesh = gu.read_txt_obj_ls(stl_path_ls[i], ret_mesh=True, use_tri_mesh=True)
.......
if vertices.shape[0]>24000:
vertices = gu.resample_pcd([vertices], 24000, "fps")[0]

    pcd = o3d.geometry.PointCloud()
    pcd.points = o3d.utility.Vector3dVector(vertices[:,:3])
    
    pcd.paint_uniform_color([0, 0, 1.0])
    o3d.visualization.draw_geometries([pcd])

But there is no pointcloud has been shown. How can I solve this problem

from toothgroupnetwork.

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.