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

vxVerifyGraph #37

Open
xiaodan7 opened this issue Sep 10, 2021 · 2 comments
Open

vxVerifyGraph #37

xiaodan7 opened this issue Sep 10, 2021 · 2 comments

Comments

@xiaodan7
Copy link

hi,I want to ask a question, hope you can help me
I used this routine
https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-acinto7/latest/exports/docs/vision_apps/docs/user_guide/APP_C7X.html

I modified the app_create_graph(AppObj *obj) in the main() function of the app_c7x_kernel function
I want the photos created to be RGB, and the output is also RGB
Therefore, I modified this variable
obj->input_img1 = vxCreateImage(obj->context, obj->width, obj->height, VX_DF_IMAGE_U8);
I changed VX_DF_IMAGE_U8 to VX_DF_IMAGE_RGB
obj->input_img1 = vxCreateImage(obj->context, obj->width, obj->height, VX_DF_IMAGE_RGB);
creatimg

vxVerifyGraph() Reported an error
ERROR: Input/Output image format not correct !!!
0.2188s: VX_ZONE_ERROR:[ownGraphNodeKernelValidate:535] node kernel validate failed for kernel app_c7x_kernel.img_add at index 0
0.2206s: VX_ZONE_ERROR:[vxVerifyGraph:1947] Node kernel Validate failed
0.2213s: VX_ZONE_ERROR:[vxVerifyGraph:2115] Graph verify failed
0.6728s: VX_ZONE_ERROR:[tivxObjectDeInit:180] Is kernel use failed
0.6753s: VX_ZONE_ERROR:[tivxObjectDeInit:276] Is error use failed

The error function is node->kernel->validate()
status = node->kernel->validate(node, node->parameters, num_params, meta);
The result of the statue is:-10
status

status :-10 corresponds to the definition as:
VX_ERROR_INVALID_PARAMETERS = -(vx_int32)10,/*!< \brief Indicates that the supplied parameter information does not match the kernel contract. */

When the status is 0, it is successful

@xiaodan7
Copy link
Author

Hope you can help me answer, thank you very much

@pzibang
Copy link

pzibang commented Sep 16, 2021

read the parameter of the kernel

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