Please provide complete information as applicable to your setup.
**• Orin NX 16g
**• DeepStream Version : 6.3
I’m working based on deepstream-app.
How can I change the class ID right after the inference is done?
For example, my label.txt looks like this
///////////////////////////////
my label.txt
car
suv
van
/////////////////////////////
I don’t want to manage sub and van as separate class IDs, but as one class ID (car).
This is because I need to keep only one type of class, car, to handle obj_meta->object_id.
However, my current pre-trained model is made of three different class types as shown in label.txt above.
So I tried this inside process_meta(), gie_primary_processing_done_buf_prob() in deepstreamp-app.c
{
for (NvDsMetaList * l_frame = batch_meta->frame_meta_list; l_frame != NULL; l_frame = l_frame->next)
{
NvDsFrameMeta frame_meta = (NvDsFrameMeta)l_frame->data;
for (NvDsMetaList * l_obj = frame_meta->obj_meta_list; l_obj != NULL; l_obj = l_obj->next)
{
NvDsObjectMeta *obj = (NvDsObjectMeta *) l_obj->data;
obj->class_id = 0; <------------
..............
}
However, the above method does not seem to change the class id right after the initial inference.
Is there any way to change the class id of suv(1), van(2) to car(0) in the step before class_id and object_id are bound to NvDsFrameMeta.
I’m looking at gst-nvinfer but I’m stumped.
If someone could help me out, it would be appreciated.