vflip¶ torchvision.transforms.functional.vflip(img: Tensor) → Tensor[原始碼]¶ 垂直翻轉給定影像。 引數: img (PIL Image 或 Tensor) – 要翻轉的影像。如果 img 是 Tensor,則其格式應為 […, H, W],其中 … 表示可以有任意數量的前導維度。 返回: 垂直翻轉後的影像。 返回型別: PIL 影像或張量 使用 vflip 的示例 轉換圖示 轉換圖示