Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions mmdet/ops/crop/crop_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import torch.nn as nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair

from . import crop_split_cuda

Expand All @@ -17,7 +16,7 @@ def forward(ctx, data, rois, c):
ctx.height = height
ctx.width = width
ctx.n = n
ctx.rois = _pair(rois)
ctx.rois = rois
# print(height*width*n)
output = data.new_zeros(height, width, n)
crop_split_cuda.crop_split_cuda_forward(data, rois, output, height, width, c, n)
Expand Down Expand Up @@ -46,4 +45,4 @@ def __init__(self, c=2):
self.c = c

def forward(self, data, rois):
return crop_split(data, rois, self.c)
return crop_split(data, rois, self.c)