Skip to content

Commit

Permalink
maybe fix traveller59#18
Browse files Browse the repository at this point in the history
  • Loading branch information
traveller59 committed Oct 22, 2018
1 parent 4938c56 commit a94dcce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cd ./second.pytorch/second
It is recommend to use Anaconda package manager.

```bash
pip install shapely fire pybind11 pyqtgraph tensorboardX
pip install shapely fire pybind11 pyqtgraph tensorboardX protobuf
```

If you don't have Anaconda:
Expand Down
8 changes: 7 additions & 1 deletion second/kittiviewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,8 @@ def draw_gt_in_image(self):
if self.kitti_info is None:
self.error("you must load infos and choose a existing image idx first.")
return

if self.gt_boxes is None:
return
rect = self.kitti_info['calib/R0_rect']
P2 = self.kitti_info['calib/P2']
Trv2c = self.kitti_info['calib/Tr_velo_to_cam']
Expand Down Expand Up @@ -1203,6 +1204,11 @@ def load_info(self, image_idx):

if 'group_ids' in annos:
self.group_ids = annos['group_ids'][:num_obj]
else:
self.gt_boxes = None
self.gt_names = None
self.difficulty = None
self.group_ids = None
if self.w_config.get("EnableSample"):
self.sample_to_current_data()
if self.w_config.get("EnableAugmentation"):
Expand Down

0 comments on commit a94dcce

Please sign in to comment.