biapy.models.efficientnetο
This module provides functionality to create and configure EfficientNet models from torchvision.models.
It allows users to instantiate various EfficientNet architectures (e.g., b0-b7), optionally load pre-trained ImageNet weights, and customize the final classification layer for specific tasks.
- biapy.models.efficientnet.efficientnet(efficientnet_name, n_classes=2, load_imagenet_weights=True)[source]ο
Create EfficientNet.
Reference: EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks.
- Parameters:
efficientnet_name (str, optional) β Efficientnet model name to be loaded. Available options: βefficientnet_b[0-7]β
n_classes (int, optional) β Number of classes.
load_imagenet_weights (bool, optional) β Whether to load IMAGENET weights or not.
- Returns:
model β EfficientNet model.
- Return type:
Torch model