Args: clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) Returns: flipped clip (torch.tensor): Size is (T, C, H, W)
(clip)
| 184 | |
| 185 | |
| 186 | def hflip(clip): |
| 187 | """ |
| 188 | Args: |
| 189 | clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) |
| 190 | Returns: |
| 191 | flipped clip (torch.tensor): Size is (T, C, H, W) |
| 192 | """ |
| 193 | if not _is_tensor_video_clip(clip): |
| 194 | raise ValueError("clip should be a 4D torch.tensor") |
| 195 | return clip.flip(-1) |
| 196 | |
| 197 | |
| 198 | class RandomCropVideo: |
no test coverage detected