当前位置: 首页>>代码示例>>Python>>正文


Python EfficientNet.from_pretrained方法代码示例

本文整理汇总了Python中efficientnet_pytorch.EfficientNet.from_pretrained方法的典型用法代码示例。如果您正苦于以下问题:Python EfficientNet.from_pretrained方法的具体用法?Python EfficientNet.from_pretrained怎么用?Python EfficientNet.from_pretrained使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在efficientnet_pytorch.EfficientNet的用法示例。


在下文中一共展示了EfficientNet.from_pretrained方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: efficientnet_b0

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b0(config):
    return EfficientNet.from_pretrained('efficientnet-b0',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例2: efficientnet_b1

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b1(config):
    return EfficientNet.from_pretrained('efficientnet-b1',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例3: efficientnet_b2

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b2(config):
    return EfficientNet.from_pretrained('efficientnet-b2',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例4: efficientnet_b3

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b3(config):
    return EfficientNet.from_pretrained('efficientnet-b3',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例5: efficientnet_b4

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b4(config):
    return EfficientNet.from_pretrained('efficientnet-b4',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例6: efficientnet_b6

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b6(config):
    return EfficientNet.from_pretrained('efficientnet-b6',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例7: efficientnet_b7

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b7(config):
    return EfficientNet.from_pretrained('efficientnet-b7',num_classes=config['numClasses']) 
开发者ID:ngessert,项目名称:isic2019,代码行数:4,代码来源:models.py

示例8: __init__

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def __init__(self, ):
        super(EfficientNet, self).__init__()
        model = EffNet.from_pretrained('efficientnet-b0')
        del model._conv_head
        del model._bn1
        del model._avg_pooling
        del model._dropout
        del model._fc
        self.model = model 
开发者ID:signatrix,项目名称:efficientdet,代码行数:11,代码来源:model.py

示例9: efficientnet_b0

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b0(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b0', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py

示例10: efficientnet_b1

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b1(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b1', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py

示例11: efficientnet_b2

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b2(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b2', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py

示例12: efficientnet_b3

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b3(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b3', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py

示例13: efficientnet_b4

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b4(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b4', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py

示例14: efficientnet_b6

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b6(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b6', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py

示例15: efficientnet_b7

# 需要导入模块: from efficientnet_pytorch import EfficientNet [as 别名]
# 或者: from efficientnet_pytorch.EfficientNet import from_pretrained [as 别名]
def efficientnet_b7(num_classes=1000, **kwargs):
    return EfficientNet.from_pretrained('efficientnet-b7', num_classes=num_classes) 
开发者ID:pudae,项目名称:kaggle-understanding-clouds,代码行数:4,代码来源:efficientnet.py


注:本文中的efficientnet_pytorch.EfficientNet.from_pretrained方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。