onnx: Add debug message with tensor id
Also downgrade input dimensions as it's shown on each buffer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9439>
This commit is contained in:
parent
edd46c51f1
commit
f69c8bf4aa
@ -386,6 +386,9 @@ GstOnnxClient::GstOnnxClient (GstElement *debug_parent):debug_parent(debug_paren
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (debug_parent, "Tensor %zu (%s) has id \"%s\"", i, name,
|
||||||
|
g_quark_to_string (outputIds.back ()));
|
||||||
|
|
||||||
/* tensor description */
|
/* tensor description */
|
||||||
GstStructure *tensor_desc = gst_structure_new_empty("tensor/strided");
|
GstStructure *tensor_desc = gst_structure_new_empty("tensor/strided");
|
||||||
|
|
||||||
@ -536,7 +539,7 @@ GstOnnxClient::GstOnnxClient (GstElement *debug_parent):debug_parent(debug_paren
|
|||||||
|
|
||||||
std::ostringstream buffer;
|
std::ostringstream buffer;
|
||||||
buffer << inputDims;
|
buffer << inputDims;
|
||||||
GST_DEBUG_OBJECT (debug_parent, "Input dimensions: %s", buffer.str ().c_str ());
|
GST_LOG_OBJECT (debug_parent, "Input dimensions: %s", buffer.str ().c_str ());
|
||||||
|
|
||||||
// copy video frame
|
// copy video frame
|
||||||
uint8_t *srcPtr[3] = { img_data, img_data + 1, img_data + 2 };
|
uint8_t *srcPtr[3] = { img_data, img_data + 1, img_data + 2 };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user