Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将PP-OCRv4_mobile_det 模型转onnx格式失败 #1460

Open
chaosang1994 opened this issue Dec 19, 2024 · 3 comments
Open

将PP-OCRv4_mobile_det 模型转onnx格式失败 #1460

chaosang1994 opened this issue Dec 19, 2024 · 3 comments
Labels
Bug Something isn't working PaddleOCR

Comments

@chaosang1994
Copy link

log:
[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: /home/cienet/project/PaddleX/pretrain_models/PP-OCRv4_mobile_det/inference.pdmodel
[Paddle2ONNX] Parameters file path: /home/cienet/project/PaddleX/pretrain_models/PP-OCRv4_mobile_det/inference.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Oops, there are some operators not supported yet, including isnan_v2,
[ERROR] Due to the unsupported operators, the conversion is aborted.


C++ Traceback (most recent call last):

0 paddle2onnx::Export(char const*, char const*, char**, int*, int, bool, bool, bool, bool, bool, paddle2onnx::CustomOp*, int, char const*, char**, int*, char const*, bool*, bool, char**, int)


Error Message Summary:

FatalError: Process abort signal is detected by the operating system.
[TimeInfo: *** Aborted at 1734590833 (unix time) try "date -d @1734590833" if you are using GNU date ***]
[SignalInfo: *** SIGABRT (@0x3e800026b07) received by PID 158471 (TID 0x7f8145e58180) from PID 158471 ***]

环境版本:
paddle2onnx 1.3.1
paddlepaddle 3.0.0b2
onnxruntime 1.19.2

@chaosang1994 chaosang1994 changed the title 将PP-OCRv4_mobile_det 模型装维onnx格式失败 将PP-OCRv4_mobile_det 模型转onnx格式失败 Dec 19, 2024
@Zheng-Bicheng
Copy link
Collaborator

@GreatV 看下这里呢?后处理优化过后应该不会有这个算子才对呀。

@Zheng-Bicheng Zheng-Bicheng added Bug Something isn't working PaddleOCR labels Dec 23, 2024
@GreatV
Copy link
Collaborator

GreatV commented Dec 23, 2024

这个用 paddleocr 2.9.1 应该不会有这个问题

@chaosang1994
Copy link
Author

paddleocr 2.9.1 要怎么用 我这里感觉没有用到paddleocr呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working PaddleOCR
Projects
None yet
Development

No branches or pull requests

3 participants