为您找到相关结果165,740个
基于Python下载网络图片方法汇总代码实例_python_脚本之家
url = 'https://movie.douban.com/celebrity/1016930/photos/?type=C&start=' + str(30*i) + '&sortby=like&size=a&subtype=a' html_text = get_html(url) pic_list += parse_html(html_text) os.makedirs('./pic/', exist_ok=True) # 输出目录 for i, pic_url in enumerate(pic_list): ...
www.jb51.net/article/1894...htm 2024-10-11
TensorFlow 模型载入方法汇总(小结)_python_脚本之家
IMAGE_PATH = './flower_photos/daisy/5673728_71b8cb57eb.jpg' with tf.Graph().as_default() as g: x = tf.placeholder(tf.float32, [1, train.INPUT_SIZE[0], train.INPUT_SIZE[1], 3]) y = Net.inference_1(x, N_CLASS=5, train=False) with tf.Session() as sess: # 程序前面得有...
www.jb51.net/article/1421...htm 2024-10-9