Skip to content

Commit

Permalink
forgot to flip the images...again
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgirshick committed Apr 17, 2015
1 parent 9e30dd8 commit 9ad4dfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/extra/train_svms.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def get_pos_examples(self):
# num_images = 100
for i in xrange(num_images):
im = cv2.imread(self.imdb.image_path_at(i))
if roidb[i]['flipped']:
im = im[:, ::-1, :]
gt_inds = np.where(roidb[i]['gt_classes'] > 0)[0]
gt_boxes = roidb[i]['boxes'][gt_inds]
_t.tic()
Expand Down

0 comments on commit 9ad4dfc

Please sign in to comment.