Open zhgqcn opened 9 months ago
在XPixelGroup/BasicSR/basicsr/data/transforms.py中在调用cv.augment时候,参数是否有误? 为什么有第三个参数
XPixelGroup/BasicSR/basicsr/data/transforms.py
def _augment(img): if hflip: # horizontal cv2.flip(img, 1, img) if vflip: # vertical cv2.flip(img, 0, img) if rot90: img = img.transpose(1, 0, 2) return img def _augment_flow(flow): if hflip: # horizontal cv2.flip(flow, 1, flow) flow[:, :, 0] *= -1 if vflip: # vertical cv2.flip(flow, 0, flow) flow[:, :, 1] *= -1 if rot90: flow = flow.transpose(1, 0, 2) flow = flow[:, :, [1, 0]] return flow
在
XPixelGroup/BasicSR/basicsr/data/transforms.py
中在调用cv.augment时候,参数是否有误? 为什么有第三个参数