backprop.models.efficientnet¶
backprop.models.efficientnet.model¶
-
class
EfficientNet(model_path: str = 'efficientnet-b0', init_model=None, name: Optional[str] = None, description: Optional[str] = None, tasks: Optional[List[str]] = None, details: Optional[Dict] = None, device=None)[source]¶ Bases:
backprop.models.generic_models.PathModelEfficientNet is a very efficient image-classification model. Trained on ImageNet.
-
model_path¶ Any efficientnet model (smaller to bigger) from efficientnet-b0 to efficientnet-b7
-
init_model¶ Callable that initialises the model from the model_path
-
name¶ string identifier for the model. Lowercase letters and numbers. No spaces/special characters except dashes.
-
description¶ String description of the model.
-
tasks¶ List of supported task strings
-
details¶ Dictionary of additional details about the model
-
device¶ Device for model. Defaults to “cuda” if available.
-
__call__(task_input, task='image-classification')[source]¶ Uses the model for the image-classification task
- Parameters
task_input – input dictionary according to the
image-classificationtask specificationtask – image-classification
-
training: bool¶
-