Giter Site home page Giter Site logo

Comments (8)

weiheshiqingchun avatar weiheshiqingchun commented on September 12, 2024

还有下载个示例图片下了几个小时没下完。拜托下次换个能放国内服务器得图片集。

from paddleclas.

littletomatodonkey avatar littletomatodonkey commented on September 12, 2024

报错: File "tools/train.py", line 124, in
main(args)

Error Message Summary:

InvalidArgumentError: If Attr(soft_label) == true, Input(X) and Input(Label) shall have the same dimensions. But received: the dimensions of Input(X) is [2],the shape of Input(X) is [-1, 2], the dimensions of Input(Label) is [3], the shape ofInput(Label) is [-1, 1, 2]
[Hint: Expected rank == label_dims.size(), but received rank:2 != label_dims.size():3.] at (D:\1.8.1\paddle\paddle\fluid\operators\cross_entropy_op.cc:63)
[operator < cross_entropy > error]
INFO 2020-05-23 18:17:34,812 utils.py:272] terminate all the procs
ERROR 2020-05-23 18:17:34,812 utils.py:416] ABORT!!! Out of all 1 trainers, the trainer process with rank=[0] was aborted. Please check its log.
INFO 2020-05-23 18:17:34,813 utils.py:272] terminate all the procs

图片512*512png,8位深度,类别1,2,3。这个报错里的rank和label_dims.size()分别是什么意思??

您好,配置文件中的classes_num修改了吗?这个需要修改为您的类别数。

from paddleclas.

weiheshiqingchun avatar weiheshiqingchun commented on September 12, 2024

from paddleclas.

littletomatodonkey avatar littletomatodonkey commented on September 12, 2024

您好,class_num也是需要算是背景类的,您如果前景有2类,背景1类,那总共应该是3类

from paddleclas.

weiheshiqingchun avatar weiheshiqingchun commented on September 12, 2024

from paddleclas.

littletomatodonkey avatar littletomatodonkey commented on September 12, 2024

麻烦提供下训练的标签文件(train_list.txt & test_list.txt)和配置文件(*.yaml)吧,您zip里面提供的文件名使用该命令无法转换
image

image

from paddleclas.

weiheshiqingchun avatar weiheshiqingchun commented on September 12, 2024

from paddleclas.

littletomatodonkey avatar littletomatodonkey commented on September 12, 2024

感谢您的反馈,已经修复该问题,您拉取下最新代码即可,改动的地方可以参考这个PR。#130

from paddleclas.

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.