个人笔记 感谢指正
Inception_V3下载
1.导入库
import tensorflow as tf
import os
import tarfile
import requests
from tqdm import tqdm
2.inception_v3下载地址
inception_pretrain_model_url = 'http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz'
3.模型本地存储地址
inception_pretrain_model_dir = 'inception_model'
if not os.path.exists(inception_pretrain_model_dir):
os.makedirs(inception_pretrain_model_dir)
#os.path.exists(dir)函数: 用于判断系统中是否有路径dir
#os.path.makedirs()函数:Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmost) will be created if it does not exist. If the target directory already exists, raise an OSError if exist_ok