in src/image_gen_aux/preprocessors/teed/teed.py [0:0]
def crop_bdcn(data1, h, w, crop_h, crop_w):
# Based on BDCN Implementation @ https://github.com/pkuCactus/BDCN
_, _, h1, w1 = data1.size()
assert h <= h1 and w <= w1
data = data1[:, :, crop_h : crop_h + h, crop_w : crop_w + w]
return data