CenterNet
CenterNet copied to clipboard
About Kitti cat_ids
Hi, sorry to bother you. I have a question about /dataset/kitti.py. What's mean : self.cat_ids = {1:0, 2:1, 3:2, 4:-3, 5:-3, 6:-2, 7:-99, 8:-99, 9:-1}
And in /sample/ddd.py: if cls_id < 0: ignore_id = [_ for _ in range(num_classes)] \ if cls_id == - 1 else [- cls_id - 2] if self.opt.rect_mask: # rect_mask: False hm[ignore_id, int(bbox[1]): int(bbox[3]) + 1, int(bbox[0]): int(bbox[2]) + 1] = 0.9999 else: for cc in ignore_id: draw_gaussian(hm[cc], ct, radius) hm[ignore_id, ct_int[1], ct_int[0]] = 0.9999 continue
Thanks very much if you have time to answer.
I guess combine lables with 'van', 'truck' to 'car' and 'Person_sitting' to 'Pedestrian'? But why calculate 'dontcare' and ignore 'tram'?
Hello @litingsjj, Did you figure out the motivation behind the usage of ignore_ids?