Enquiries on condit...
 
Notifications
Clear all

Question Enquiries on conditional counting for dabble.statistics with PeekingDuck

3 Posts
2 Users
0 Likes
87 Views
Posts: 2
 Vkoh
Member
Topic starter
(@vkoh)
New Member
Joined: 2 months ago

Hi! I would like to ask if there are any ways to count the specific number of each type of object detected by the yolo model?

I tried to use dabble.tracking followed by conditional counting in dabble.statistics. However, I realised that the 'obj_attrs'  returned only has the 'ids' attribute unlike the example (in the table under dabble.statistics) shown in the documentation where the 'details' attribute is also present. I am unable to find any other nodes in dabble with a suitable attribute . Thus I would like to ask if there are any ways to work around this or am I missing out on something here. 

Thank you for your time!

2 Replies
Gao Hongnan
Posts: 28
Moderator
(@gao-hongnan)
Eminent Member
Joined: 6 months ago

Hi, after discussing with my team, it cannot be done within the current PeekingDuck codebase, unfortunately.

You may consider writing a custom node to process the outputs of `model.yolo`. The `ids` in `dabble.statistics` tutorial are generated by `dabble.tracking`, which are not the same as the objects' class ids. PeekingDuck models do not output `obj_attrs` (used by `dabble.statistics`); The custom node can include self defined logic to process `bbox_labels` and output a group by summary strong, which canbe displayed by `draw.legend`.

Reply
1 Reply
 Vkoh
Member
(@vkoh)
Joined: 2 months ago

New Member
Posts: 2

@gao-hongnan Thank you for the reply!

Reply
Share: