towhee.models.utils.download.download_from_url

towhee.models.utils.download.download_from_url(url: str, root: Optional[str] = None, hash_prefix: Optional[str] = None)[source]

Download file from url.

Parameters:
  • url (str) – url

  • root (str) – root directory to save downloaded file, defaults to ‘~/.towhee/checkpoints’

  • hash_prefix (str) – hash prefix to checksum for the downloaded file, only enabled when it has value