Comments (8)
还有下载个示例图片下了几个小时没下完。拜托下次换个能放国内服务器得图片集。
from paddleclas.
报错: 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.
from paddleclas.
您好,class_num
也是需要算是背景类的,您如果前景有2类,背景1类,那总共应该是3类
from paddleclas.
from paddleclas.
麻烦提供下训练的标签文件(train_list.txt & test_list.txt)和配置文件(*.yaml)吧,您zip里面提供的文件名使用该命令无法转换
from paddleclas.
from paddleclas.
感谢您的反馈,已经修复该问题,您拉取下最新代码即可,改动的地方可以参考这个PR。#130
from paddleclas.
Related Issues (20)
- 使用PPLCNetV2_base_ShiTu模型,在GPU上运行加速效果不明显 HOT 1
- PaddleClas,图像识别部署,根据2.5文档服务化部署预测过程中出现报错 HOT 4
- 一张图片中两行文字发生了折叠,如果有文字发生折叠的图片和文字未发生折叠的图片,用哪一个分类模型效果会好一些? HOT 4
- PaddleClas 如何实现模型在train 以及 infer 的时候使用不同分支的forword HOT 1
- KeyError: 'save_infer_model/scale_0.tmp_1.lod' HOT 1
- PPLCNetV2_base_ShiTu模型增加图片的分辨率跟输出的维数会增加检索精度吗? HOT 1
- Direct prediction API HOT 1
- 关于paddleClas和paddlepaddle版本的问题 HOT 5
- release/2.5 ModuleNotFoundError: No module named 'ppcls' HOT 3
- paddleclas.PaddleClas使用inference_model_dir指定模型PULC模型识别有误 HOT 1
- 想要做一个文物拍照识别的课题研究,PP-ShituV2是否适合? HOT 2
- pp-shituv2 使用paddleserving部署后启动服务运行python3.7 pipeline_http_client.py报/home/aistudio/PaddleClas/deploy/paddleserving/recognition {'err_no': 8, 'err_msg': "(data_id=0 log_id=0) [det|0] Failed to postprocess: 'scale_factor.lod'", 'key': [], 'value': [], 'tensors': []} HOT 2
- 训练时报错 OSError: (External) CUDA error(719), unspecified launch failure. HOT 9
- 怎么训练出不带reshape2算子的general_PPLCNetV2_base模型? HOT 2
- 训练报错 HOT 2
- 首次接触paddle,我想在win10上部署,应该看哪个教程 HOT 3
- ERROR: Unexpected segmentation fault encountered in DataLoader workers. HOT 2
- 我运行的是PP-ShitV2(PP-ShiTu PC端 demo 快速体验),我想修改代码,使输出结果可以显示三个种类可能性,请问如何修改代码 HOT 1
- ImportError: cannot import name 'ClsPredictor' from 'deploy.python.predict_cls' HOT 1
- gpu下预测的结果都是正常的,但切换到cpu下预测,结果全是nan 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 paddleclas.