tfds.download.Resource

Represents a resource to download, extract, or both.

url str, the URL at which to download the resource.
extract_method ExtractMethod to be used to extract resource. If not set, will be guessed from downloaded file name original_fname.
path str, path of resource on local disk. Can be None if resource has not be downloaded yet. In such case, url must be set.

extract_method Returns ExtractMethod to use on resource. Cannot be None.

Methods

exists_locally

View source

Returns whether the resource exists locally, at resource.path.