It seems defferent with the flow of the program osd_sink_pad_buffer_probe. According to osd_sink_pad_buffer_probe, the flow is batch_meta->frame_meta->object_meta.
ps. Where is the classified meta data? It is attatched to frame_meta, or object_meta? How to get the classified id of every frame?
I am classifying every frame, so the nvinfer plugin work on full frame. The classifying model is the primary model. So I think Classifier meta should be attached to frame_meta. Is it still in object_meta? How to read the classifying result?
Are you sure that there is only one object in a frame. Why do some frames has 2 objects and some frames has no objects?
I test this by the following program:
… num_frames_in_batch: 1 the 0 frame the -1 object
*belong to the 0 type. * the -1 object
*belong to the 6933 type. * num_frames_in_batch: 1 the 1 frame the -1 object
*belong to the 0 type. * the -1 object
*belong to the 6933 type. * num_frames_in_batch: 1 the 2 frame the -1 object
*belong to the 0 type. * the -1 object
*belong to the 6933 type. * num_frames_in_batch: 1 the 3 frame the -1 object
*belong to the 0 type. * the -1 object
*belong to the 6933 type. * num_frames_in_batch: 1 the 4 frame num_frames_in_batch: 1 the 5 frame the -1 object
*belong to the 0 type. * the -1 object
*belong to the 0 type. * num_frames_in_batch: 1 the 6 frame the -1 object
*belong to the 0 type. * the -1 object
*belong to the 0 type. * num_frames_in_batch: 1 the 7 frame num_frames_in_batch: 1 the 8 frame num_frames_in_batch: 1 the 9 frame num_frames_in_batch: 1 the 10 frame num_frames_in_batch: 1 the 11 frame num_frames_in_batch: 1 the 12 frame num_frames_in_batch: 1 the 13 frame num_frames_in_batch: 1 the 14 frame num_frames_in_batch: 1 the 15 frame num_frames_in_batch: 1 the 16 frame num_frames_in_batch: 1 the 17 frame num_frames_in_batch: 1 …
It seems that some frames have 2 objects, and some frame have no object without the line “belong to the *** type”. I mistake something? Any help is appreciated.
There is only a classified mode which works on full frame. In fact, I am testing this by the Secondary_CarColor model which is provided by deepstream. originally it is usred as secondary model. Now it are used as primary model and is the only model.
Even the object metadata are output by the model, why there is no any object metadata in the 13 frame, 14 frame, 15frame, 16 frame. It should has at least 1 object metadata.
What is the nvinfer config file? This model is designed and trained by car images(single car), I’m not sure what will happen if the input image is not a single car.
If there is no output from the model, there is no output meta data. Why do you think the model must have 1 object metadata?
Since the nvinfer works on the full frame, every frame should has a classified result. According to your opinion, it is attached to a object metadata, and the object metadata is attached to the frame metadata. So I think it is the value val_id = labelinfo->result_class_id and print this value and frame No.