@@ -365,15 +365,24 @@ class R2Plus1D_18_Weights(WeightsEnum):
365
365
366
366
@handle_legacy_interface (weights = ("pretrained" , R3D_18_Weights .KINETICS400_V1 ))
367
367
def r3d_18 (* , weights : Optional [R3D_18_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> VideoResNet :
368
- """Construct 18 layer Resnet3D model as in
369
- https://arxiv.org/abs/1711.11248
368
+ """Construct 18 layer Resnet3D model.
370
369
371
- Args:
372
- weights (R3D_18_Weights, optional): The pretrained weights for the model
373
- progress (bool): If True, displays a progress bar of the download to stderr
370
+ Reference: `A Closer Look at Spatiotemporal Convolutions for Action Recognition <https://arxiv.org/abs/1711.11248>`__.
374
371
375
- Returns:
376
- VideoResNet: R3D-18 network
372
+ Args:
373
+ weights (:class:`~torchvision.models.video.R3D_18_Weights`, optional): The
374
+ pretrained weights to use. See
375
+ :class:`~torchvision.models.video.R3D_18_Weights`
376
+ below for more details, and possible values. By default, no
377
+ pre-trained weights are used.
378
+ progress (bool): If True, displays a progress bar of the download to stderr. Default is True.
379
+ **kwargs: parameters passed to the ``torchvision.models.video.resnet.VideoResNet`` base class.
380
+ Please refer to the `source code
381
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/video/resnet.py>`_
382
+ for more details about this class.
383
+
384
+ .. autoclass:: torchvision.models.video.R3D_18_Weights
385
+ :members:
377
386
"""
378
387
weights = R3D_18_Weights .verify (weights )
379
388
@@ -390,15 +399,24 @@ def r3d_18(*, weights: Optional[R3D_18_Weights] = None, progress: bool = True, *
390
399
391
400
@handle_legacy_interface (weights = ("pretrained" , MC3_18_Weights .KINETICS400_V1 ))
392
401
def mc3_18 (* , weights : Optional [MC3_18_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> VideoResNet :
393
- """Constructor for 18 layer Mixed Convolution network as in
394
- https://arxiv.org/abs/1711.11248
402
+ """Construct 18 layer Mixed Convolution network as in
395
403
396
- Args:
397
- weights (MC3_18_Weights, optional): The pretrained weights for the model
398
- progress (bool): If True, displays a progress bar of the download to stderr
404
+ Reference: `A Closer Look at Spatiotemporal Convolutions for Action Recognition <https://arxiv.org/abs/1711.11248>`__.
399
405
400
- Returns:
401
- VideoResNet: MC3 Network definition
406
+ Args:
407
+ weights (:class:`~torchvision.models.video.MC3_18_Weights`, optional): The
408
+ pretrained weights to use. See
409
+ :class:`~torchvision.models.video.MC3_18_Weights`
410
+ below for more details, and possible values. By default, no
411
+ pre-trained weights are used.
412
+ progress (bool): If True, displays a progress bar of the download to stderr. Default is True.
413
+ **kwargs: parameters passed to the ``torchvision.models.video.resnet.VideoResNet`` base class.
414
+ Please refer to the `source code
415
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/video/resnet.py>`_
416
+ for more details about this class.
417
+
418
+ .. autoclass:: torchvision.models.video.MC3_18_Weights
419
+ :members:
402
420
"""
403
421
weights = MC3_18_Weights .verify (weights )
404
422
@@ -415,15 +433,24 @@ def mc3_18(*, weights: Optional[MC3_18_Weights] = None, progress: bool = True, *
415
433
416
434
@handle_legacy_interface (weights = ("pretrained" , R2Plus1D_18_Weights .KINETICS400_V1 ))
417
435
def r2plus1d_18 (* , weights : Optional [R2Plus1D_18_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> VideoResNet :
418
- """Constructor for the 18 layer deep R(2+1)D network as in
419
- https://arxiv.org/abs/1711.11248
436
+ """Construct 18 layer deep R(2+1)D network as in
420
437
421
- Args:
422
- weights (R2Plus1D_18_Weights, optional): The pretrained weights for the model
423
- progress (bool): If True, displays a progress bar of the download to stderr
438
+ Reference: `A Closer Look at Spatiotemporal Convolutions for Action Recognition <https://arxiv.org/abs/1711.11248>`__.
424
439
425
- Returns:
426
- VideoResNet: R(2+1)D-18 network
440
+ Args:
441
+ weights (:class:`~torchvision.models.video.R2Plus1D_18_Weights`, optional): The
442
+ pretrained weights to use. See
443
+ :class:`~torchvision.models.video.R2Plus1D_18_Weights`
444
+ below for more details, and possible values. By default, no
445
+ pre-trained weights are used.
446
+ progress (bool): If True, displays a progress bar of the download to stderr. Default is True.
447
+ **kwargs: parameters passed to the ``torchvision.models.video.resnet.VideoResNet`` base class.
448
+ Please refer to the `source code
449
+ <https://github.com/pytorch/vision/blob/main/torchvision/models/video/resnet.py>`_
450
+ for more details about this class.
451
+
452
+ .. autoclass:: torchvision.models.video.R2Plus1D_18_Weights
453
+ :members:
427
454
"""
428
455
weights = R2Plus1D_18_Weights .verify (weights )
429
456
0 commit comments