-
Notifications
You must be signed in to change notification settings - Fork 408
Closed
Description
<View>
<Header>Label the video:</Header>
<Video name="video" value="$video" />
<VideoRectangle name="box" toName="video" />
<Labels name="videoLabels" toName="video">
<Label value="Cell" background="#944BFF"/>
<Label value="Bacteria" background="#98C84E"/>
</Labels>
</View>
yolo | Traceback (most recent call last):
yolo | File "/opt/conda/lib/python3.10/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
yolo | return f(*args, **kwargs)
yolo | File "/opt/conda/lib/python3.10/site-packages/label_studio_ml/api.py", line 69, in _predict
yolo | response = model.predict(tasks, context=context, **params)
yolo | File "/app/model.py", line 109, in predict
yolo | control_models = self.detect_control_models()
yolo | File "/app/model.py", line 88, in detect_control_models
yolo | raise ValueError(
yolo | ValueError: No suitable control tags (e.g. Choices, RectangleLabels, RectangleLabels, PolygonLabels, KeyPointLabels, VideoRectangle, TimelineLabels connected to Image or Video object tags) detected in the label config:
yolo | <View>
yolo | <Header>Label the video:</Header>
yolo | <Video name="video" value="$video" />
yolo | <VideoRectangle name="box" toName="video" />
yolo | <Labels name="videoLabels" toName="video">
yolo | <Label value="Cell" background="#944BFF"/>
yolo | <Label value="Bacteria" background="#98C84E"/>
yolo | </Labels>
yolo | </View>
How come no VideoRectangle tag if it's right there?
I'm running the example from
https://labelstud.io/tags/videorectangle
So, it seems there must be at least one <Label tag that is a valid model label, otherwise will trigger this error
yolo | [2025-05-01 07:33:19,920] [DEBUG] [label_studio_ml.model::build_label_map::404] Model Labels <=> Label Studio Labels:
yolo | {}
yolo | [2025-05-01 07:33:19,920] [ERROR] [model::detect_control_models::65] No label map built for the 'VideoRectangle' control tag 'box'.
yolo | This indicates that your Label Studio config labels do not match the model's labels.
yolo | To fix this, ensure that the 'value' or 'predicted_values' attribute in your Label Studio config matches one or more of these model labels.
yolo | If you don't want to use this control tag for predictions, add `model_skip="true"` to it.
yolo | Examples:
yolo | <Label value="Car"/>
yolo | <Label value="YourLabel" predicted_values="label1,label2"/>
yolo | Labels provided in your labeling config:
yolo | {}
yolo | Available 'yolov8n.pt' model labels:
yolo | ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard', 'tennis racket', 'bottle', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch', 'potted plant', 'bed', 'dining table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier', 'toothbrush']
As there are no Cell and Bacteria in yolov8n.pt the error triggers.
But if I add a known label like Person than the error doesn't occur.
<View>
<Header>Label the video:</Header>
<Video name="video" value="$video" />
<VideoRectangle name="box" toName="video" />
<Labels name="videoLabels" toName="video">
<Label value="Cell" background="#944BFF"/>
<Label value="Bacteria" background="#98C84E"/>
<Label value="Person" background="blue"/>
</Labels>
</View>
<View>
<Header>Label the video:</Header>
<Video name="video" value="$video" />
<VideoRectangle name="box" toName="video" />
<Labels name="videoLabels" toName="video">
<Label value="Cell" background="#944BFF" model_skip="true" />
<Label value="Bacteria" background="#98C84E" model_skip="true" />
</Labels>
</View>
I tried adding model_skip="true" to Cell and Bacteria labels but it had no effect, the error occurs again if I remove the valid label (Person)
Is this a known bug?
Metadata
Metadata
Assignees
Labels
No labels