Closed ZeweiZhou closed 1 year ago
I haven't encountered this bug, it seems that z_num is empty for a certain node type, perhaps a certain node type is missing either in the config or in the training data?
I appreciated you getting back to me so promptly. Thank you so much!
Unfortunately, the issue still exists.
When I print the z_num, I get: VEHICLE: tensor([ 4, 20, 20, 20], device='cuda:0', dtype=torch.int32), PEDESTRIAN: tensor([], device='cuda:0', dtype=torch.int32)
Could you tell me whether some special setting should be done for the pedestrian data in the nuScenes?
And I found the result of process data is:
Processing mini_train Scenes (2 CPUs): 100%|█████████████| 8/8 [02:36<00:00, 19.61s/it]
Processed 8 scenes
Saved Environment!
Total Nodes: 0
Curvature > 0.1 Nodes: 0
Curvature > 0.2 Nodes: 0
Preprocessing mini_val Samples: 100%|████████████████| 61/61 [00:00<00:00, 9899.12it/s]
Processing mini_val Scenes (2 CPUs): 100%|███████████████| 2/2 [00:32<00:00, 16.31s/it]
Processed 2 scenes
Saved Environment!
Total Nodes: 0
Curvature > 0.1 Nodes: 0
Curvature > 0.2 Nodes: 0
I would like to know whether it is normal for the result of total nodes?
Oh, I think this is because of your batch size. The code assumes that there is some pedestrian and some vehicle, and there is no pedestrian in your batch. I just pushed a fix, and hope that solves the problem. In any case, using a larger batch size would practically solve the problem.
Hi! When I train the model with the nuScenes dataset, I meet the following issues. Do some settings lead to a empty tensor? I printed the tensor and get:
tensor([16, 16], device='cuda:0', dtype=torch.int32) tensor([], device='cuda:0', dtype=torch.int32)