MarvinChung / Orbeez-SLAM

GNU General Public License v3.0
267 stars 29 forks source link

A question about ray-casting triangulation. #9

Open ShilangChen1011 opened 1 year ago

ShilangChen1011 commented 1 year ago

This is a very good work. I am currently looking at the ray casting triangulation part in the code, can you tell me which part of the original Instant-NGP code you modified, and be specific? Thanks!

MarvinChung commented 1 year ago

Many modifications have been made to the code, and I'd like to highlight some specific ones.

In the train section, there are two key processes:

Training Preparation for Nerf (training_prep_nerf): This process involves preparing the density grid and handling the density_grid_sample_ct, which stores the sample count for each voxel.

Nerf Training (train_nerf): This step includes both sampling and training. When a ray traverses a voxel that is not considered empty, we perform point sampling on the ray's position and store this information for later loss computation. During the loss computation, we examine the sampled points. If the weight exceeds a certain threshold, we classify the point as part of the surface. Subsequently, we increment the voxel count for ray casting triangulation.