深度学习中用到过的一些可复用的模块
深度学习中用到过的一些可复用的模块从文件夹中分批读取图像,供模型使用
从文件夹中分批读取图像,供模型使用
import tensorflow as tf
import os
def read_image(root_path: str, batch_size: int, shape: tuple, shuffle=True):
"""tensorflow 用队列读取大量图片
将r...
原创
2019-10-19 19:59:39 ·
281 阅读 ·
0 评论