当前位置: 首页>>代码示例>>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;未经允许,请勿转载。