Shortcuts

mmedit.utils.download_from_url

mmedit.utils.download_from_url(url, dest_path=None, dest_dir='/home/docs/.cache/openmmlab/mmedit/', hash_prefix=None)[source]

Download object at the given URL to a local path.

Parameters
  • url (str) – URL of the object to download.

  • dest_path (str) – Path where object will be saved.

  • dest_dir (str) – The directory of the destination. Defaults to '~/.cache/openmmlab/mmgen/'.

  • hash_prefix (string, optional) – If not None, the SHA256 downloaded file should start with hash_prefix. Default: None.

Returns

path for the downloaded file.

Return type

str

Read the Docs v: zyh/doc-notfound-extend
Versions
master
latest
stable
zyh-doc-notfound-extend
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.