Hi @jchibane,
Thanks for sharing your work (and nice code btw).
I have some doubts on the point cloud generation algorithm in ndf/models/generation.py.
More precisely:
samples are created in the range [-1.5, 1.5] here; if I understand it correctly, this is because pytorch grid_sample requires the grid coordinates to be in the range [-1, 1] and you add and extra 0.5 because the network was trained with coordinates possibly out of the [-1, 1] range
df_pred though should be distances predicted by the network for coordinates in the range [-0.5, 0.5] since the udf ground truth is computed here on coordinates belonging to the range [-0.5, 0.5]
- thus, I think that the computation
samples = samples - F.normalize(gradient, dim=2) * df_pred.reshape(-1, 1) here is moving samples in the range [-1.5, 1.5] with udf predictions for the range [-0.5, 0.5]
Also: since samples x and z dimensions are not swapped before feeding them to the network (as it is done for training), it seems to me that samples and udf predictions are in a different reference system.
What am I missing?
Thanks in advance!
Hi @jchibane,
Thanks for sharing your work (and nice code btw).
I have some doubts on the point cloud generation algorithm in
ndf/models/generation.py.More precisely:
samplesare created in the range [-1.5, 1.5] here; if I understand it correctly, this is because pytorchgrid_samplerequires the grid coordinates to be in the range [-1, 1] and you add and extra 0.5 because the network was trained with coordinates possibly out of the [-1, 1] rangedf_predthough should be distances predicted by the network for coordinates in the range [-0.5, 0.5] since the udf ground truth is computed here on coordinates belonging to the range [-0.5, 0.5]samples = samples - F.normalize(gradient, dim=2) * df_pred.reshape(-1, 1)here is movingsamplesin the range [-1.5, 1.5] with udf predictions for the range [-0.5, 0.5]Also: since
samplesx and z dimensions are not swapped before feeding them to the network (as it is done for training), it seems to me thatsamplesand udf predictions are in a different reference system.What am I missing?
Thanks in advance!