Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ztsrxh authored Apr 28, 2024
1 parent 3004a11 commit 53b59d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_sample(test_loader):
times[i] = starter.elapsed_time(ender)

metric.compute(pred, ele_gt, ele_mask)
with open('./bev_pred/' + cur_time + '.pkl', 'wb') as f:
with open('./bev_pred/' + cur_time[0] + '.pkl', 'wb') as f:
pickle.dump(pred.squeeze().data.cpu(), f)

mean_time = times.mean().item()
Expand Down

0 comments on commit 53b59d1

Please sign in to comment.