Open jia1047 opened 5 months ago
This may be caused by the representation range of colors. You should determine whether the representation range of colors is [0,255] or [0,1] in CC.
May I ask if I have used the visualization code you previously sent to someone else, which is writePly (os. path. coin (LOG-DIR, 'val_preds', name), [xyzrgb, preds, labels], ['x', 'y', 'z', 'red', 'green', 'blue', 'pred', 'label']), and its visualization results are the same as original_ply's visualization results. I have since modified the code and wrote two writePly codes. I want to obtain the visualization of real labels and predicted labels, but the visualization results of these two are the same. All are consistent, consistent with writePly (os. path. coin (LOG-DIR, 'val_preds', name), [xyzrgb, preds, labels], The visualization results obtained from ['x ',' y ',' z ',' red ',' green ',' blue ',' pred ',' label '] and original_ply are consistent. May I ask how your visualization code is specifically written? Can you obtain visualization of real labels and visualization of predicted labels
It is foreseeable for the results to be consistent, because the rgb
attribute is the same in your two ply files. As a result, if you directly visualize them, they are showing the same color.
if you want to visual the predicted result and gt like the following picture, you must map the predicted indices and gt indices to some specific colors and replace the rgb
attribute then save as new ply files.
I used the visualization code you previously provided to others, but when I used CC, the visualization result was blank and I don't know what's going on