def to_tensor_after_resize(clip):
    """
    Convert resized tensor to [0, 1]
    Args:
        clip (torch.tensor, dtype=torch.float): Size is (T, C, H, W)
    Return:
        clip (torch.tensor, dtype=torch.float): Size is (T, C, H, W), but in [0, 1]
    """
    _is_tensor_video_clip(clip)
    # return clip.float().permute(3, 0, 1, 2) / 255.0
    return clip.float() / 255.0
Convert resized tensor to [0, 1]
Args:
clip (torch.tensor, dtype=torch.float): Size is (T, C, H, W)
Return:
clip (torch.tensor, dtype=torch.float): Size is (T, C, H, W), but in [0, 1]
opensora/dataset/transform.py