def proc_rawdata(rawdata):
    def imgresize(img):
        img = imgproc.resize(img, [160, 80], keep_ratio='height')
        return img

    def imgprep(img):
        img = imgproc.subtract_luminance(img)
        img = np.rollaxis(img, 2)
        return (img / 100.0).astype(np.float32)

    I = [imgresize(img) for img in rawdata]
    X = [imgprep(img) for img in I]
    X = np.asarray(X)
    X = X.mean(axis=0) - X
    return I, X
dataset/ETHPy150Open Cysu/dlearn/examples/human_sar/produce_seg.py/proc_rawdata/swapped operands of `-`