Closed LordLiang closed 3 years ago
Hi LordLiang,
this is the coordinate system which is needed for the 'grid_sample' function, see for example
https://github.com/jchibane/if-net/blob/master/models/local_model.py#L141
The grid sample function is used for trilinear interpolation when doing feature extraction from discrete deep feature grids at continuously sampled point coordinates.
Best, Julian
Hi LordLiang,
this is the coordinate system which is needed for the 'grid_sample' function, see for example
https://github.com/jchibane/if-net/blob/master/models/local_model.py#L141
The grid sample function is used for trilinear interpolation when doing feature extraction from discrete deep feature grids at continuously sampled point coordinates.
Best, Julian
Hi, I encountered a similar issue in the voxelized_data_shapenet.py file. In the return statement(line 76):
return {'grid_coords': np.array(coords, dtype=np.float32), 'occupancies': np.array(occupancies, dtype=np.float32), 'points': np.array(points, dtype=np.float32), 'inputs': np.array(input, dtype=np.float32), 'path': path} I noticed that the key 'points' is included but not actually used. Additionally, I observed that 'grid_coords' does not fall within the range [-1, 1], as points + sigma results in values exceeding this range. I’m trying to understand where exactly the 'points' data is supposed to be useful.
Hi LordLiang,
this is the coordinate system which is needed for the 'grid_sample' function, see for example
https://github.com/jchibane/if-net/blob/master/models/local_model.py#L141
The grid sample function is used for trilinear interpolation when doing feature extraction from discrete deep feature grids at continuously sampled point coordinates.
Best, Julian
Hi, I encountered a similar issue in the voxelized_data_shapenet.py file. In the return statement:
return {'grid_coords': np.array(coords, dtype=np.float32), 'occupancies': np.array(occupancies, dtype=np.float32), 'points': np.array(points, dtype=np.float32), 'inputs': np.array(input, dtype=np.float32), 'path': path} I noticed that the key 'points' is included but not actually used. Additionally, I observed that 'grid_coords' does not fall within the range [-1, 1], as points + sigma results in values exceeding this range. I’m trying to understand where exactly the 'points' data is supposed to be useful.
Hi, thank you for your excellent work! I have 2 questions about boundary_sampling, can you help me?
grid_coords[:, 0]
andgrid_coords[:, 2]
? Do you want to rotategrid_coords
?grid_coords = 2 * grid_coords
before this you normalize the range to [-0.5, 0.5] while you generateisosurf_scaled.off
, now why do you change it to [-1, 1]