r3d_18¶
- torchvision.models.video.r3d_18(*, weights: Optional[R3D_18_Weights] = None, progress: bool = True, **kwargs: Any) VideoResNet[source]¶
Construct 18 layer Resnet3D model.
Warning
The video module is in Beta stage, and backward compatibility is not guaranteed.
Reference: A Closer Look at Spatiotemporal Convolutions for Action Recognition.
- Parameters:
weights (
R3D_18_Weights, optional) – The pretrained weights to use. SeeR3D_18_Weightsbelow for more details, and possible values. By default, no pre-trained weights are used.progress (bool) – If True, displays a progress bar of the download to stderr. Default is True.
**kwargs – parameters passed to the
torchvision.models.video.resnet.VideoResNetbase class. Please refer to the source code for more details about this class.