Can not convert a int into a Tensor or Operation.:
_,err,acc = sess.run([train_op,loss,acc],feed_dict={x:x_train_a,y_:labels_train_a})
acc,acc重复了
NAN错误loss:忘加了if os.path.isdir(path+x):
而文件夹中有oriF:/eclipse/workplace/flower/data/flower_photos/LICENSE.txt。。。。不是数据文件
for x in flower_classes:
if os.path.isdir(path+x):
cate.append(path+x)
os.path.isdir函数详细说明:
在Python编程语言中可以使用os.path.isdir()函数判断某一路径是否为目录。其函数原型如下所示。
os.path.isdir(path)
其参数含义如下。path 要进行判断的路径。以下实例判断E:\book\temp是否为目录。
>>> import os
>>> os.path.isdir('E:\\book\\temp')
判断E:\book\temp是否为目录
True 表示 E:\book\temp是目录