I modified the sample deepstream_app in the function process_meta. Only one classification model is used as the primary gie. The number of every batch is set as 30. I wanted to print the frame index, the object index, the object class, the label infos. So the print line is
g_print ("frame_source_id: %d; frame_batch_id: %u; frame_num_obj: %d; object_class_id: %d; label_result_class_id, %u; label_result_prob: %f*********************\n", frame_meta->source_id, frame_meta->batch_id, frame_meta->num_obj_meta, obj->class_id, label->result_class_id, label->result_prob);*
But the feedback is
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.897929*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.897929*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 8; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.703907*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.703907*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.648912*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 12; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.822102*********************
…
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.961249*********************
frame_source_id: 0; frame_batch_id: 0; frame_num_obj: 64; object_class_id: -1; label_result_class_id, 1; label_result_prob: 0.913482*********************
I hope to know:
(1). Why are all frame_source_id 0? Only the first frame in every batch is inferred? How to get all frames in a batch?
(2). Why are all of frame_meta->num_obj_meta different? The reply are 8, 12, 42, 52 and so on.
(3). Are all object_class_ids -1?
• Hardware Platform (Jetson / GPU): 1080Ti
• DeepStream Version: 5.1
• JetPack Version (valid for Jetson only): No
• TensorRT Version: 7.2.1
• NVIDIA GPU Driver Version (valid for GPU only): 460.91.03
• Issue Type( questions, new requirements, bugs): questions
• How to reproduce the issue ? 1 change the model, 2 add a print line in the function process_meta of deepstream_app
• Requirement details: please tell me why and how
Thanks. Any help is welcome.