Image classification assigns labels to an entire image. X-AnyLabeling supports multiclass and multilabel classification.
Multiclass classification assigns exactly one class to each image.
Multilabel classification allows each image to have multiple labels.
The following models support automatic multiclass classification:
| Model | Model Implementation |
|---|---|
| YOLOv5-Cls | yolov5_cls.py |
| YOLOv8-Cls | yolov8_cls.py |
| YOLO11-Cls | yolo11_cls.py |
| InternImage | internimage_cls.py |
Load a classification model in the main window and run automatic labeling on a single image or a batch. Predictions are saved in the image-level flags field. After automatic labeling, open the Image Classifier (Ctrl+3 on Windows/Linux or ⌘+3 on macOS) to review and correct the predictions. Save the corrected annotations before exporting images by category.
Step 0: Preparation
Prepare a flags file like logo_flags.txt or fruit_flags.txt. An example is shown below:
Apple
Meta
GoogleStep 1: Run the Application
python anylabeling/app.pyStep 2: Upload the Configuration File
Click on Upload -> Upload Image Flags File in the top menu bar and select the prepared configuration file to upload.
Option 1: Quick Start
Tip
This option is suitable for a quick startup.
python anylabeling/app.py --flags Apple,Meta,GoogleCaution
Separate labels with commas.
Option 2: Using a Configuration File
python anylabeling/app.py --flags flags.txtNote
Each line in the file represents one category.
For detailed output examples, refer to this folder.

