xiaoaoran / SemanticSTF

(CVPR 2023) The official project of "3D Semantic Segmentation in the Wild: Learning Generalized Models for Adverse-Condition Point Clouds"
95 stars 12 forks source link

The training stops after the first epoch #6

Open AbdullahJirjees opened 4 months ago

AbdullahJirjees commented 4 months ago

Hello,

I am facing this issue of training termination exacly after the first epoch is reached 100%, here is what I am getting

image

image

ThisisKKya commented 4 months ago

@AbdullahJirjees Since Torchsparse changed the coordinate order, you should modify the code like this.

for idx in range(invs.C[:,-1].max() + 1): 
>>>>>>
for idx in range(invs.C[:, 0].max() + 1):

cur_scene_pts = (inputs_1.C[:, -1] == idx).cpu().numpy()
cur_inv = invs.F[invs.C[:, -1] == idx].cpu().numpy()
cur_label = (all_labels.C[:, -1] == idx).cpu().numpy()
>>>>>>>>>>
cur_scene_pts = (inputs_1.C[:, 0] == idx).cpu().numpy()
cur_inv = invs.F[invs.C[:, 0] == idx].cpu().numpy()
cur_label = (all_labels.C[:, 0] == idx).cpu().numpy()

image