waitingfordark / four_flower Goto Github PK
View Code? Open in Web Editor NEW使用tensorflow和cnn做的图像识别,对四种花进行了分类。
License: MIT License
使用tensorflow和cnn做的图像识别,对四种花进行了分类。
License: MIT License
我用你的代码运行了train,然后弹出了一个错误,AttributeError: module 'tensorflow_core._api.v2.train' has no attribute 'slice_input_producer'
错误指出在input_data文件里的tf.train.slice_input_producer([image, label])不存在。
我查了资料,tf.train.slice_input_producer已经被弃用了。但不知道该用什么替代它。
我这里用的4060的显卡,CUDA是12.1的,报BLAS GEMM计算失败的错误,所以想问一下作者或者哪位可以成功部署的版本
请问我下载了你的模型后运行为什么会报错SyntaxError: Non-ASCII character '\xe8' 呀?需要再改下代码吗?
作者你好,我用tensorflow2.0复现了你的代码。并且自己扩张了一个荷花的图片数据集,共730张。但是我用荷花的图片去识别,无论如何识别不出荷花来,但是原来的四种图片都可以准确识别。请问你的图片格式有何特定规范吗?
导入必须文件时 不需要等号,就可以直接在终端进行导入
在input_data.py里把数据集分成了训练和测试,在train.py里也对测试操作进行了定义,但是没有使用啊,那划分和定义的有什么意义呢?
大神,能给个联系方式吗,运行有问题
Reading checkpoints...
Loading success,global_step is 9999
并没有显示各种花的可能性,是什么问题?
您好,我看您的test.py只能测试一张图,如果我想测试一个数据集,以及计算准确率、召回率等等,应该怎样?
作者,你好,请问怎么运用测试集呀?谢谢
运行test.py是报错,tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value conv1/weights,未初始化再怎么解决
想问一下大佬,你的数据集是哪里来的呀?
作者用的tensorflow是哪个版本啊
训练明明都是 准确率100%了,
可是用训练集中的照片测试的时候,还是有失败的照片。
可以用来训练其他的图片吗?不限制于花。
TypeError: Input 'predictions' of 'InTopKV2' Op has type int32 that does not match expected type of float32.
这个怎么解决啊,在GitHub上看到有人提问过,说加上
logits = tf.cast(logits, "float32") labels = tf.cast(labels, "int32")
不过还是报错了
如题,我发现在test.py中是对单一图片进行的判断,如果想要针对一批图片进行判断并输出混淆矩阵的话如何设置比较合适?
您好,test.py的main函数中用到的flower_photos数据集好像没在github上
tensorflow.python.framework.errors_impl.InvalidArgumentError: cannot compute Pack as input #1(zero-based) was expected to be a string tensor but is a int32 tensor [Op:Pack] name: component_0
这个该怎么解决啊
想问一下数据集的来源是哪哇,最近在找花的数据集
单独运行test是可以的但是在gui里一开始显示变量没有初始化 所以在test里加了变量初始化的一句
sess.run(tf.global_variables_initializer())
之后单独运行test正常但是gui里仍然有错
首先是运行到result = evaluate_one_image(image)时显示找不到checkpoint
然后是result_text = wx.StaticText(self.pnl, label=result, pos=(320, 0))参数数目不正确 不知道是哪里有问题啊
请问gui.py里wx缺失应该怎么处理? wx是什么?
你好Up主。方便分享一下你的整个设计步骤和思路吗?在下小白,clone了你的代码看了好久了,还有些细节不懂。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.