We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e7701d commit 9cbec19Copy full SHA for 9cbec19
torchvision/prototype/transforms/_auto_augment.py
@@ -483,7 +483,8 @@ def forward(self, *inputs: Any) -> Any:
483
augmentation_space = self._AUGMENTATION_SPACE if self.all_ops else self._PARTIAL_AUGMENTATION_SPACE
484
485
orig_dims = list(image_or_video.shape)
486
- batch = image_or_video.view([1] * max(4 - image_or_video.ndim, 0) + orig_dims)
+ expected_dim = 5 if isinstance(orig_image_or_video, features.Video) else 4
487
+ batch = image_or_video.view([1] * max(expected_dim - image_or_video.ndim, 0) + orig_dims)
488
batch_dims = [batch.size(0)] + [1] * (batch.ndim - 1)
489
490
# Sample the beta weights for combining the original and augmented image or video. To get Beta, we use a
0 commit comments