Skip to content

Commit

Permalink
Merge pull request #573 from benedictflorance/master
Browse files Browse the repository at this point in the history
Fix issue #452 for PyTorch 0.4.0
  • Loading branch information
jwyang authored Jun 10, 2019
2 parents 81c9033 + 03f5f8c commit 56aff1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roi_data_layer/roibatchLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, roidb, ratio_list, ratio_index, batch_size, num_classes, trai
# for ratio cross 1, we make it to be 1.
target_ratio = 1

self.ratio_list_batch[left_idx:(right_idx+1)] = target_ratio
self.ratio_list_batch[left_idx:(right_idx+1)] = torch.tensor(target_ratio.astype(np.float64)) # trainset ratio list ,each batch is same number


def __getitem__(self, index):
Expand Down

0 comments on commit 56aff1c

Please sign in to comment.