Giter VIP home page Giter VIP logo

Comments (9)

yjt123456789 avatar yjt123456789 commented on August 18, 2024 2

你好,我根据你的步骤运行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.

wusaifei avatar wusaifei commented on August 18, 2024 1

@yjt123456789 你好,imgaug是一个图像处理库哈,你可以直接pip install imgaug就行啦

from garbage_classify.

Byronnar avatar Byronnar commented on August 18, 2024

请问是不能在本地训练吗?一定要在华为云那里?

from garbage_classify.

wusaifei avatar wusaifei commented on August 18, 2024

@Byronnar 你好,因为那个moxing是华为的一个库,本地不可以下载,我已经修改了代码可以在本地运行啦

from garbage_classify.

wusaifei avatar wusaifei commented on August 18, 2024

@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.

yjt123456789 avatar yjt123456789 commented on August 18, 2024

感谢您的解答,不过仍然有个问题想问问你,运行结果提示ModuleNotFoundError: No module named 'imgaug'。我看了一下你定义的函数,里面并没有imgaug,倒是有一个img_aug,dan但是我把它导入进去还是运行不了。

from garbage_classify.

yjt123456789 avatar yjt123456789 commented on August 18, 2024

好的,谢谢

from garbage_classify.

wusaifei avatar wusaifei commented on August 18, 2024

@yjt123456789 不客气哈

from garbage_classify.

Byronnar avatar Byronnar commented on August 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.