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

tiovxdlcolorblend: Not working in EdgeAI apps #164

Open
aniket-l opened this issue Dec 15, 2021 · 1 comment
Open

tiovxdlcolorblend: Not working in EdgeAI apps #164

aniket-l opened this issue Dec 15, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@aniket-l
Copy link
Collaborator

aniket-l commented Dec 15, 2021

PFA error logs when integrating the plugin into the EdgeAI apps.
blend_error_logs.txt

Also PFA a patch file
colorblend.txt
to be applied on top of master branch commit id 969a319 (https://git.ti.com/cgit/edgeai/edge_ai_apps/commit/?id=969a319acb8a4b112f4e3176fdc96abc9f16a6fb) to reproduce the error.
Also note that in the config file semantic_segmentation.yaml, use "models: [model1]" in the flow as the other models use int64 data type which is not enabled yet.

@aniket-l aniket-l added the bug Something isn't working label Dec 15, 2021
@jafet-chaves
Copy link
Contributor

jafet-chaves commented Dec 22, 2021

Aniket, as mentioned previously the solution to this issue is that (at least in the commit 969a319acb8a4b112f4e3176fdc96abc9f16a6fb) the following pipeline branch needs to specify the data type, width and height. This allows caps negotiation to work. Please check the diff below

diff --git a/apps_python/gst_wrapper.py b/apps_python/gst_wrapper.py
index 0494488..13603e0 100644
--- a/apps_python/gst_wrapper.py
+++ b/apps_python/gst_wrapper.py
@@ -497,7 +497,7 @@ def get_post_proc_str(flow):
         sen_cmd += '! blend.sink \t'
         infer_cmd = 'appsrc format=GST_FORMAT_TIME is-live=true block=true ' + \
                     'do-timestamp=true name=%s ' % flow.gst_infer_sink_name + \
-                    '! application/x-tensor-tiovx ' + \
+                    '! capssetter ! application/x-tensor-tiovx,data-type=6,num-dims=3,tensor-width=512,tensor-height=512 ' + \
                     '! queue ! blend.tensor \t'
         sink_cmd = 'tiovxdlcolorblend name=blend target=1 num-classes=%d data-type=%d ' % (flow.model.num_classes,data_type) + \
                     '! video/x-raw,format=NV12 '+ \

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

No branches or pull requests

2 participants