zaiweizhang / H3DNet

MIT License
211 stars 25 forks source link

Visualizations #26

Closed Dhanalaxmi17 closed 2 years ago

Dhanalaxmi17 commented 2 years ago

Hi @zaiweizhang and @GitBoSun, Thank you for this repo. I am trying to see the visualizations, but when I ran show_results_scannet.py, I could only get the bounding boxes, but how do I get the scene and bounding boxes on top of it. can you please help me to get this issue solved for me. Thank you

image

Dhanalaxmi17 commented 2 years ago

if I use, tmp.xyz instead of xyzrgb in "pcd = o3d.io.read_point_cloud('tmp.xyzrgb')" I am getting this, image,

Dhanalaxmi17 commented 2 years ago

Hi, Thanks, I could solve it by dividing pcd points with "np.array([1 , 1, 1,255, 255, 255])"

pt = np.load(os.path.join(GT_PATH, scan_name+'_vert.npy'))
b = np.array([1 , 1, 1,255, 255, 255]) # The number to divide in each column 
np.savetxt('tmp.xyz', pt[:,:6]/b)

image

Thank you :)