Mixed Model
Mixed Model is similar to object detection but goes further by classifying the detected targets into more specific categories.
After completing the model annotations, refer to the video in the Training section to create dataset versions and train/deploy the model.
Use Case Scenarios
Mixed Model is suitable for determining whether an object appears in a scene and identifying its category. It is well-suited for smart surveillance and detecting risky or hazardous objects.
It can also be used in defect detection scenarios to identify multiple objects in a scene and classify them as OK or NG.
Label Creation
When creating labels for a mixed model, refer to the following structure:
The first level is the object category
The second level is the subcategory
The third level is the attribute of the subcategory
Warning
When annotating the third-level “attribute”, ensure that each first-level category has at least one attribute selected. For example, for the category “Head”, subcategories might include “Helmet Color” (red/blue/black) and “Wearing Mask” (yes/no).
Attributes like “Helmet Color” and “Wearing Mask” can coexist if they do not logically conflict.
If there’s a conflict (e.g., between “Helmet Color” and “Wearing Helmet”), then when “Not Wearing Helmet” is selected, no helmet color should be labeled.
Make sure each subcategory has one and only one valid attribute selected, and subcategories do not conflict with each other.
Annotation Method
Use the rectangle annotation tool to draw a bounding box and select the main category.
Click save, then select the subcategory and its attribute. Note: If the main category has multiple subcategories, each must have one and only one valid attribute selected.
Repeat the annotation process for all objects in the scene. If there are no objects, annotate the image as empty.
Notes
The Mixed Model only supports rectangular annotations. Therefore, annotation areas may slightly overlap but should not fully overlap.
Annotation areas must not exceed image boundaries.
If a category includes multiple subcategories, each must have exactly one valid attribute selected.
Practice
Download and unzip mixed_model.zip from practice data.
You will get 21 images and annotation (.json) files. Please upload only the images to DaoAI World for annotation practice. Later, you can upload both the images and annotation files to compare the results.