當前位置: 首頁>>代碼示例>>Python>>正文


Python download.maybe_download_and_extract方法代碼示例

本文整理匯總了Python中download.maybe_download_and_extract方法的典型用法代碼示例。如果您正苦於以下問題:Python download.maybe_download_and_extract方法的具體用法?Python download.maybe_download_and_extract怎麽用?Python download.maybe_download_and_extract使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在download的用法示例。


在下文中一共展示了download.maybe_download_and_extract方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: maybe_download_and_extract

# 需要導入模塊: import download [as 別名]
# 或者: from download import maybe_download_and_extract [as 別名]
def maybe_download_and_extract():
    """
    Download and extract the CIFAR-10 data-set if it doesn't already exist
    in data_path (set this variable first to the desired path).
    """

    download.maybe_download_and_extract(url=data_url, download_dir=data_path) 
開發者ID:PacktPublishing,項目名稱:Deep-Learning-By-Example,代碼行數:9,代碼來源:cifar10.py

示例2: maybe_download

# 需要導入模塊: import download [as 別名]
# 或者: from download import maybe_download_and_extract [as 別名]
def maybe_download():
    """
    Download the Inception model from the internet if it does not already
    exist in the data_dir. The file is about 85 MB.
    """

    print("Downloading Inception v3 Model ...")
    download.maybe_download_and_extract(url=data_url, download_dir=data_dir)


######################################################################## 
開發者ID:PacktPublishing,項目名稱:Deep-Learning-By-Example,代碼行數:13,代碼來源:inception.py

示例3: maybe_download_and_extract

# 需要導入模塊: import download [as 別名]
# 或者: from download import maybe_download_and_extract [as 別名]
def maybe_download_and_extract():
    """
    Download and extract the IMDB Review data-set if it doesn't already exist
    in data_dir (set this variable first to the desired directory).
    """

    download.maybe_download_and_extract(url=data_url, download_dir=data_dir) 
開發者ID:PacktPublishing,項目名稱:Deep-Learning-By-Example,代碼行數:9,代碼來源:imdb.py

示例4: maybe_download

# 需要導入模塊: import download [as 別名]
# 或者: from download import maybe_download_and_extract [as 別名]
def maybe_download():
    """
    Download the Inception model from the internet if it does not already
    exist in the data_dir. The file is about 85 MB.
    """

    # print("Downloading Inception v3 Model ...")
    download.maybe_download_and_extract(url=data_url, download_dir=data_dir)


######################################################################## 
開發者ID:PipelineAI,項目名稱:models,代碼行數:13,代碼來源:inception.py

示例5: maybe_download

# 需要導入模塊: import download [as 別名]
# 或者: from download import maybe_download_and_extract [as 別名]
def maybe_download(self):
        """
        Download and extract the CIFAR-100 data-set if it doesn't already exist
        in data_path (set this variable first to the desired path).
        """

        download.maybe_download_and_extract(url=self.data_url, download_dir=self.data_dir) 
開發者ID:GuyHacohen,項目名稱:curriculum_learning,代碼行數:9,代碼來源:cifar100_subset.py


注:本文中的download.maybe_download_and_extract方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。