Skip to content

Commit 3c82d48

Browse files
committed
hotfix(eval/test): for history frames, we update keys' name and it need rm ground mask also.
1 parent fbf0fe7 commit 3c82d48

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/trainer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ def run_model_wo_ground_data(self, batch):
290290
batch['origin_pc0'] = batch['pc0'].clone()
291291
batch['pc0'] = batch['pc0'][~batch['gm0']].unsqueeze(0)
292292
batch['pc1'] = batch['pc1'][~batch['gm1']].unsqueeze(0)
293-
if 'pcb0' in batch:
294-
batch['pcb0'] = batch['pcb0'][~batch['gmb0']].unsqueeze(0)
293+
294+
for i in range(1, self.num_frames-1):
295+
batch[f'pch{i}'] = batch[f'pch{i}'][~batch[f'gmh{i}']].unsqueeze(0)
296+
295297
self.model.timer[12].start("One Scan")
296298
res_dict = self.model(batch)
297299
self.model.timer[12].stop()

0 commit comments

Comments
 (0)