将图片制作成内存对象数据集 import tensorflow as tf import os from matplotlib import pyplot as plt import numpy as np from sklearn.utils import shuffle def load_sample(sample_dir): '''递归读取文件。只支持一级。返回文件名、数值标签、数值对应的标签名''' print("loading sample datatest...") lfilenames=[] labelsnames=[] for (dir