本文簡要介紹python語言中 torchvision.models.detection.ssdlite320_mobilenet_v3_large
的用法。
用法:
torchvision.models.detection.ssdlite320_mobilenet_v3_large(pretrained: bool = False, progress: bool = True, num_classes: int = 91, pretrained_backbone: bool = False, trainable_backbone_layers: Optional[int] = None, norm_layer: Optional[Callable[[…], torch.nn.modules.module.Module]] = None, **kwargs: Any)
pretrained(bool) -如果為 True,則返回在 COCO train2017 上預訓練的模型
progress(bool) -如果為 True,則顯示下載到 stderr 的進度條
num_classes(int) -模型的輸出類數(包括背景)
pretrained_backbone(bool) -如果為 True,則返回一個在 Imagenet 上預訓練過主幹的模型
trainable_backbone_layers(int) -從最終塊開始的可訓練(未凍結)resnet 層數。有效值介於 0 和 6 之間,其中 6 表示所有主幹層都是可訓練的。
norm_layer(可調用的,可選的) -指定要使用的規範化層的模塊。
構造一個輸入大小為 320x320 和 MobileNetV3 大型骨幹網的 SSDlite 模型,如 “Searching for MobileNetV3” 和 “MobileNetV2: Inverted Residuals and Linear Bottlenecks” 中所述。
有關詳細信息,請參閱
ssd300_vgg16()
。示例
>>> model = torchvision.models.detection.ssdlite320_mobilenet_v3_large(pretrained=True) >>> model.eval() >>> x = [torch.rand(3, 320, 320), torch.rand(3, 500, 400)] >>> predictions = model(x)
使用
ssdlite320_mobilenet_v3_large
的示例:
參數:
相關用法
- Python PyTorch ssd300_vgg16用法及代碼示例
- Python PyTorch saved_tensors_hooks用法及代碼示例
- Python PyTorch sqrt用法及代碼示例
- Python PyTorch skippable用法及代碼示例
- Python PyTorch squeeze用法及代碼示例
- Python PyTorch square用法及代碼示例
- Python PyTorch save_on_cpu用法及代碼示例
- Python PyTorch scatter_object_list用法及代碼示例
- Python PyTorch skip_init用法及代碼示例
- Python PyTorch simple_space_split用法及代碼示例
- Python PyTorch sum用法及代碼示例
- Python PyTorch sub用法及代碼示例
- Python PyTorch sparse_csr_tensor用法及代碼示例
- Python PyTorch sentencepiece_numericalizer用法及代碼示例
- Python PyTorch symeig用法及代碼示例
- Python PyTorch sinh用法及代碼示例
- Python PyTorch sinc用法及代碼示例
- Python PyTorch std_mean用法及代碼示例
- Python PyTorch spectral_norm用法及代碼示例
- Python PyTorch slogdet用法及代碼示例
- Python PyTorch symbolic_trace用法及代碼示例
- Python PyTorch shutdown用法及代碼示例
- Python PyTorch sgn用法及代碼示例
- Python PyTorch set_flush_denormal用法及代碼示例
- Python PyTorch set_default_dtype用法及代碼示例
注:本文由純淨天空篩選整理自pytorch.org大神的英文原創作品 torchvision.models.detection.ssdlite320_mobilenet_v3_large。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。