當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。