File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,11 +252,11 @@ def parse_args():
252
252
if args .class_agnostic :
253
253
box_deltas = box_deltas .view (- 1 , 4 ) * torch .FloatTensor (cfg .TRAIN .BBOX_NORMALIZE_STDS ).cuda () \
254
254
+ torch .FloatTensor (cfg .TRAIN .BBOX_NORMALIZE_MEANS ).cuda ()
255
- box_deltas = box_deltas .view (1 , - 1 , 4 )
255
+ box_deltas = box_deltas .view (args . batch_size , - 1 , 4 )
256
256
else :
257
257
box_deltas = box_deltas .view (- 1 , 4 ) * torch .FloatTensor (cfg .TRAIN .BBOX_NORMALIZE_STDS ).cuda () \
258
258
+ torch .FloatTensor (cfg .TRAIN .BBOX_NORMALIZE_MEANS ).cuda ()
259
- box_deltas = box_deltas .view (1 , - 1 , 4 * len (imdb .classes ))
259
+ box_deltas = box_deltas .view (args . batch_size , - 1 , 4 * len (imdb .classes ))
260
260
261
261
pred_boxes = bbox_transform_inv (boxes , box_deltas , 1 )
262
262
pred_boxes = clip_boxes (pred_boxes , im_info .data , 1 )
You can’t perform that action at this time.
0 commit comments