Skip to content

Commit

Permalink
Merge pull request #60 from avilash/master
Browse files Browse the repository at this point in the history
Removing hard coded number of classes for VOC dataset
  • Loading branch information
HaozhiQi committed Jun 9, 2017
2 parents e31c98e + 94649d9 commit e6be483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pylayer/stage_bridge_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def setup(self, bottom, top):
self._top_name_map['mask_weight'] = 3
top[4].reshape(1, 4)
self._top_name_map['gt_mask_info'] = 4
top[5].reshape(1, 21 * 4)
top[5].reshape(1, self._num_classes * 4)
self._top_name_map['bbox_targets'] = 5
top[6].reshape(1, 21 * 4)
top[6].reshape(1, self._num_classes * 4)
self._top_name_map['bbox_inside_weights'] = 6
top[7].reshape(1, 21 * 4)
top[7].reshape(1, self._num_classes * 4)
self._top_name_map['bbox_outside_weights'] = 7
elif self._phase == 'TEST':
top[0].reshape(1, 5)
Expand Down

0 comments on commit e6be483

Please sign in to comment.