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

模型转换,int8量化,设置rknn_batch_size = 2报错 #475

Open
Data-Adventure opened this issue Sep 20, 2024 · 1 comment
Open

模型转换,int8量化,设置rknn_batch_size = 2报错 #475

Data-Adventure opened this issue Sep 20, 2024 · 1 comment

Comments

@Data-Adventure
Copy link

E RKNNAPI: __pthread_recv_msg, recv(MsgHeader) fail, -9(ERROR_PIPE) < 108!
E RKNNAPI: rknn_outputs_get, p_ctx->queue_output.size() = 0!
E accuracy_analysis: Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

W accuracy_analysis: ===================== WARN(7) =====================
E rknn-toolkit2 version: 2.1.0+708089d1
E accuracy_analysis: Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2796, in rknn.api.rknn_base.RKNNBase.accuracy_analysis
File "rknn/api/rknn_base.py", line 2696, in rknn.api.rknn_base.RKNNBase._runtime_dump
File "rknn/api/rknn_log.py", line 314, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_log.py", line 95, in rknn.api.rknn_log.RKNNLog.e
ValueError: Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

I ===================== WARN(0) =====================
E rknn-toolkit2 version: 2.1.0+708089d1
Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2796, in rknn.api.rknn_base.RKNNBase.accuracy_analysis
File "rknn/api/rknn_base.py", line 2696, in rknn.api.rknn_base.RKNNBase._runtime_dump
File "rknn/api/rknn_log.py", line 314, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_log.py", line 95, in rknn.api.rknn_log.RKNNLog.e
ValueError: Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "convert.py", line 160, in
rknn = ana_acc(rknn, img, secret_input)
File "convert.py", line 123, in ana_acc
inputs=[img, secret_input], target=PLATEFORM, output_dir="./bs2/snapshot"
File "/usr/local/lib/python3.6/dist-packages/rknn/api/rknn.py", line 275, in accuracy_analysis
return self.rknn_base.accuracy_analysis(inputs, output_dir, target, device_id)
File "rknn/api/rknn_log.py", line 314, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_log.py", line 95, in rknn.api.rknn_log.RKNNLog.e
ValueError: Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2796, in rknn.api.rknn_base.RKNNBase.accuracy_analysis
File "rknn/api/rknn_base.py", line 2696, in rknn.api.rknn_base.RKNNBase._runtime_dump
File "rknn/api/rknn_log.py", line 314, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_log.py", line 95, in rknn.api.rknn_log.RKNNLog.e
ValueError: Traceback (most recent call last):
File "rknn/api/rknn_log.py", line 309, in rknn.api.rknn_log.error_catch_decorator.error_catch_wrapper
File "rknn/api/rknn_base.py", line 2623, in rknn.api.rknn_base.RKNNBase.inference
File "rknn/api/rknn_runtime.py", line 572, in rknn.api.rknn_runtime.RKNNRuntime.get_outputs
Exception: E Get outputs failed, error code: RKNN_ERR_FAIL

模型转换,int8量化,设置rknn_batch_size = 2报错,
config,设置如下:
rknn.config(
mean_values=mean,
std_values=std,
target_platform=PLATEFORM,
quantized_algorithm="mmse",
optimization_level=3,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Data-Adventure and others