-
Notifications
You must be signed in to change notification settings - Fork 466
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
paddleocr3 在转成rknn模型时出错 #1530
Comments
安装测试版本的rknn包试一下 You can also download all packages, docker image, examples, docs and platform-tools from baidu cloud: RK_NPU_SDK, fetch code: rknn |
最新的即可,我们用的是1.4.2b3 |
python3.6 FastDeploy/tools/rknpu2/export.py --config_path FastDeploy/tools/rknpu2/config/ppocrv3_det.yaml --target_platform rk3588 |
有装conda吗?装个conda试以下,这个ocr的模型转换其他人是转成功了的,一般不会出现问题 |
infer_static_shape_demo ./ch_PP-OCRv3_det_infer/ch_PP-OCRv3_det_infer_rk3588_unquantized.rknn ./ch_ppocr_mobile_v2.0_cls_infer/ch_ppocr_mobile_v20_cls_infer_rk3588_unquantized.rknn ./ch_PP-OCRv3_rec_infer/ch_PP-OCRv3_rec_infer_rk3588_unquantized.rknn ./ppocr_keys_v1.txt ./12.jpg 1 转换成功,推理发生错误 |
你用的驱动和fastdeploy的不一致吧,为啥还是1.4.0的,拉一下最新的develop版本的fastdeploy的代码 |
如果已经是最新的,看一下docs/cn/build/rknpu2.md 这个文档配置一下编译环境再运行试试 |
source PathToFastDeploySDK/fastdeploy_init.sh |
能够正常使用了吗 |
@leokwu 请问你是怎么解决的呢?我也是转换成功,但推理时候出错。
|
解决了,下载最新的runtime,替换掉就可以了。 |
你好,链接失效了,可以再提供一下吗 |
python3.8 FastDeploy/tools/rknpu2/export.py --config_path FastDeploy/tools/rknpu2/config/ppocrv3_det.yaml --target_platform rk3588
{'mean': [[123.675, 116.28, 103.53]], 'std': [[58.395, 57.12, 57.375]], 'model_path': './ch_PP-OCRv3_det_infer/ch_PP-OCRv3_det_infer.onnx', 'outputs_nodes': None, 'do_quantization': False, 'dataset': None, 'output_folder': './ch_PP-OCRv3_det_infer'}
Traceback (most recent call last):
File "FastDeploy/tools/rknpu2/export.py", line 35, in
model = RKNN(config.verbose)
File "/home/wuli/.local/lib/python3.8/site-packages/rknn/api/rknn.py", line 56, in init
self.rknn_base = RKNNBase(cur_path, verbose)
File "rknn/api/rknn_base.py", line 75, in rknn.api.rknn_base.RKNNBase.init
File "/home/wuli/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 514, in get_distribution
dist = get_provider(dist)
File "/home/wuli/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 386, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/home/wuli/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 683, in find
if dist is not None and dist not in req:
File "/home/wuli/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3135, in contains
return self.specifier.contains(item, prereleases=True)
File "/home/wuli/.local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 902, in contains
item = Version(item)
File "/home/wuli/.local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in init
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '1.4.0-22dcfef4'
The text was updated successfully, but these errors were encountered: