download_datasets.py 文件源码

python
阅读 43 收藏 0 点赞 0 评论 0

项目:text-to-image 作者: paarthneekhara 项目源码 文件源码
def create_data_paths():
    if not os.path.isdir(DATA_DIR):
        raise EnvironmentError('Needs to be run from project directory containing ' + DATA_DIR)
    needed_paths = [
        os.path.join(DATA_DIR, 'samples'),
        os.path.join(DATA_DIR, 'val_samples'),
        os.path.join(DATA_DIR, 'Models'),
    ]
    for p in needed_paths:
        make_sure_path_exists(p)


# adapted from http://stackoverflow.com/questions/51212/how-to-write-a-download-progress-indicator-in-python
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号