(frames)
return new_frames
Performs the inverse operation of normalize_frames.

    @param frames: A numpy array. The frames to be converted.

    @return: The denormalized frames.
Performs the inverse operation of normalize_frames.
Performs the inverse operation of normalize_frames .
def denormalize_frames(frames):
    """
    Performs the inverse operation of normalize_frames.

    @param frames: A numpy array. The frames to be converted.

    @return: The denormalized frames.
    """
    new_frames = frames + 1
    new_frames *= (255 / 2)
    # noinspection PyUnresolvedReferences
    new_frames = new_frames.astype(np.uint8)

    return new_frames
def denormalize_frames ( frames ) : new_frames = frames + 1 new_frames *= ( 255 / 2 ) # noinspection PyUnresolvedReferences new_frames = new_frames . astype ( np . uint8 ) return new_frames