Comments (9)
你好,我根据你的步骤运行python run.py --data_url='./garbage_cl
assify/train_data' --train_url='./model_snapshots' --deploy_script_path='./deploy_scripts'
运行结果提示:
Exception: FLAGS.num_classes error, should be a positive number associated with your classification task
请问怎么解决?
from garbage_classify.
@yjt123456789 你好,imgaug
是一个图像处理库哈,你可以直接pip install imgaug
就行啦
from garbage_classify.
请问是不能在本地训练吗?一定要在华为云那里?
from garbage_classify.
@Byronnar 你好,因为那个moxing是华为的一个库,本地不可以下载,我已经修改了代码可以在本地运行啦
from garbage_classify.
@yjt123456789 你好,你需要在run.py文件中有个tf.app.flags.DEFINE_integer('num_classes', 40 ,'the num of classes which your task should classify'),将num_classes改为你的类别数
from garbage_classify.
感谢您的解答,不过仍然有个问题想问问你,运行结果提示ModuleNotFoundError: No module named 'imgaug'。我看了一下你定义的函数,里面并没有imgaug,倒是有一个img_aug,dan但是我把它导入进去还是运行不了。
from garbage_classify.
好的,谢谢
from garbage_classify.
@yjt123456789 不客气哈
from garbage_classify.
@yjt123456789 不客气哈
你好, eval的时候报这个错请问是什么原因?
TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("input_1:0", shape=(?, 456, 456, 3), dtype=float32) is not an element of this graph.
from garbage_classify.
Related Issues (20)
- 请问作者有训练好的模型吗?想写一个网页应用 HOT 1
- 作者你好customize_service这个文件的一个库 from model_service.tfserving_model_service import TfServingBaseService 在你的源码中没有 HOT 1
- 关于.h5文件 HOT 1
- Tensor Tensor("input_1:0", shape=(?, 456, 456, 3), dtype=float32) is not an element of this graph. HOT 3
- 我也存在这样的问题,请问你解决了吗 HOT 2
- 有人一起做吗,咱们建个微信群讨论吧, HOT 2
- 跑通这个项目需要哪几步? HOT 2
- 关于在第一轮回调时的报错信息 HOT 4
- 关于mean_std.py HOT 1
- 关于准确度和loss值 HOT 2
- 关于准确率和验证集和测试集 HOT 1
- 您好,我在配置的时候总是出错
- ModuleNotFoundError: No module named 'keras' HOT 2
- SVM作用是什么?为什么要加svm? HOT 1
- 找不到指定模块 HOT 1
- 有没有训练好的模型参考下,这边训练太慢了
- TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("input_1:0", shape=(?, 456, 456, 3), dtype=float32) is not an element of this graph. HOT 7
- 关于准确率的小问题 HOT 1
- 数据集没有了 HOT 2
- TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("input_1:0", shape=(?, 456, 456, 3), dtype=float32) is not an element of this graph. #49 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garbage_classify.