In bev_planner_v2.py, when plotting the cropped_other_bev, I find that some bevs shift from their original their locs. As shown in Fig. (c), the locs are plotted as red dots, which shifts away from the vehicle colored with yellow. I have already set the feature_x_jitter, feature_y_jitter, x_jitter, a_jitter to 0.
The crop_feature code can be found bellow.
locs_jitter = (torch.rand((K,2))*2-1).float().to(locs.device) * self.feature_x_jitterlocs_jitter[:,1] = 0oris_jitter = (torch.rand((K,))*2-1).float().to(oris.device) * self.feature_angle_jittercropped_other_bev = self.crop_feature(flat_bev, flat_rel_loc0+locs_jitter, flat_rel_ori0+oris_jitter, pixels_per_meter=self.pixels_per_meter, crop_size=self.crop_size*2)
How can I crop other bevs as Fig. (b)?
Thank you for your time.
Hello, Sorry to bother you.
In bev_planner_v2.py, when plotting the cropped_other_bev, I find that some bevs shift from their original their locs. As shown in Fig. (c), the locs are plotted as red dots, which shifts away from the vehicle colored with yellow. I have already set the feature_x_jitter, feature_y_jitter, x_jitter, a_jitter to 0. The crop_feature code can be found bellow.
locs_jitter = (torch.rand((K,2))*2-1).float().to(locs.device) * self.feature_x_jitter
locs_jitter[:,1] = 0
oris_jitter = (torch.rand((K,))*2-1).float().to(oris.device) * self.feature_angle_jitter
cropped_other_bev = self.crop_feature(flat_bev, flat_rel_loc0+locs_jitter, flat_rel_ori0+oris_jitter, pixels_per_meter=self.pixels_per_meter, crop_size=self.crop_size*2)
How can I crop other bevs as Fig. (b)? Thank you for your time.