def reset(self):
        """
        When a video is predicted, the history memory shoulb be reset.
        """
        self.r1 = None
        self.r2 = None
        self.r3 = None
        self.r4 = None

        When a video is predicted, the history memory shoulb be reset.
        
Matting/ppmatting/models/rvm.py