( model_name: str pretrained: bool = False pretrained_cfg: typing.Union[str, typing.Dict[str, typing.Any], timm.models._pretrained.PretrainedCfg, NoneType] = None pretrained_cfg_overlay: typing.Union[typing.Dict[str, typing.Any], NoneType] = None checkpoint_path: str = '' scriptable: typing.Optional[bool] = None exportable: typing.Optional[bool] = None no_jit: typing.Optional[bool] = None **kwargs )
Parameters
Create a model
Lookup model’s entrypoint function and pass relevant args to create a new model.
**kwargs will be passed through entrypoint fn to timm.models.build_model_with_cfg() and then the model class init(). kwargs values set to None are pruned before passing.
Keyword Args: drop_rate (float): dropout rate for training (default: 0.0) global_pool (str): global pool type (default: ‘avg’) **: other kwargs are consumed by builder or model init()
( filter: typing.Union[str, typing.List[str]] = '' module: str = '' pretrained: bool = False exclude_filters: typing.Union[str, typing.List[str]] = '' name_matches_cfg: bool = False include_tags: typing.Optional[bool] = None )
Parameters
Return list of available model names, sorted alphabetically
Example: model_list(‘gluon_resnet’) — returns all models starting with ‘gluon_resnet’ model_list(’resnext*, ‘resnet’) — returns all models with ‘resnext’ in ‘resnet’ module