res = (array of 1 x 6742) # (output of supercombo.onnx)
lanes_plan_ = res[0,:4995].reshape(5, 991)
lanes_cls = ss_softmax(lanes_plan_[:,0])
lanes_plan = lanes_plan_[:,1:].reshape(5,2,33,5,3)[np.argmax(lanes_cls)]
lanes_plan_xyz = lanes_plan[1,:,0,:]
lanes_plan_xyz[...,0] = np.exp(lanes_plan_xyz[...,0])
lanes_plan_xyz[...,1] = np.sinh(lanes_plan_xyz[...,1])
Hi, Thanks for the great deepdive!
Btw, Could I ask you two questions:
What I tried to get the xyz (cmiiw again):
https://github.com/OpenDriveLab/Openpilot-Deepdive/blob/main/demo.py#L86
https://github.com/OpenDriveLab/Openpilot-Deepdive/blob/main/utils.py#L151-L157