towhee.models.action_clip.action_clip.create_model

towhee.models.action_clip.action_clip.create_model(clip_model: Union[str, Module], pretrained: bool = False, jit: bool = False, device: Optional[str] = None, checkpoints: Optional[dict] = None, cfg: Optional[dict] = None) ActionClip[source]

Create action clip model :param clip_model: A clip model name or a model instance. :type clip_model: Union[str, nn.Module] :param pretrained: Whether model is pretrained. :type pretrained: bool :param jit: Whether returned one is a jit model, only useful when pretrained is True. :type jit: bool :param device: Cuda or gpu. :type device: str :param checkpoints: Checkpoints state infos, only useful when pretrained is True. :type checkpoints: dict :param cfg: Other model configs. :type cfg: dict

Returns:

(ActionClip)

ActionClip model instance.