def get_video_frames(video_dir, frame_stamps):
    video_stamps = np.loadtxt(osp.join(video_dir,"stamps.txt"))
    frame_inds = np.searchsorted(video_stamps, frame_stamps)
    
    rgbs = []
    depths = []
    for frame_ind in frame_inds:
        rgb = cv2.imread(osp.join(video_dir,frame_ind%"rgb%i.jpg"))
        assert rgb is not None
        rgbs.append(rgb)
        depth = cv2.imread(osp.join(video_dir,"depth%i.png"%frame_ind),2)
        assert depth is not None
        depths.append(depth)
    return rgbs, depths
dataset/ETHPy150Open rll/lfd/lfd/rapprentice/bag_proc.py/get_video_frames/swapped operands of `%`