Instructions to use macpaw-research/yolov11l-ui-elements-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use macpaw-research/yolov11l-ui-elements-detection with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("macpaw-research/yolov11l-ui-elements-detection") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
docs: add prominent AGPL-3.0 licensing warning and practical implications to model card
43d50fd verified | base_model: | |
| - Ultralytics/YOLO11 | |
| pipeline_tag: object-detection | |
| library_name: ultralytics | |
| metrics: | |
| - mAP50 | |
| - mAP50-95 | |
| - accuracy50 | |
| - precision | |
| - recall | |
| - f1 | |
| model-index: | |
| - name: macpaw-research/yolov11l-ui-elements-detection | |
| results: | |
| - task: | |
| type: object-detection | |
| metrics: | |
| - type: accuracy | |
| value: 0.65359 | |
| name: accuracy@0.5 | |
| - task: | |
| type: object-detection | |
| metrics: | |
| - type: precision | |
| value: 0.49055 | |
| name: precision | |
| - task: | |
| type: object-detection | |
| metrics: | |
| - type: recall | |
| value: 0.43433 | |
| name: recall | |
| - task: | |
| type: object-detection | |
| metrics: | |
| - type: f1 | |
| value: 0.43776 | |
| name: f1 | |
| - task: | |
| type: object-detection | |
| metrics: | |
| - type: map | |
| value: 0.46644 | |
| name: mAP@0.5 | |
| - task: | |
| type: object-detection | |
| metrics: | |
| - type: map | |
| value: 0.31295 | |
| name: mAP@0.5-0.95 | |
| datasets: | |
| - macpaw-research/Screen2AX-Element | |
| license: agpl-3.0 | |
| # π YOLOv11l β UI Elements Detection | |
| This model is a fine-tuned version of [`Ultralytics/YOLO11`](https://huggingface.co/Ultralytics/YOLO11), trained to detect **UI elements** in macOS application screenshots. | |
| It is part of the **Screen2AX** project β a research effort focused on generating accessibility metadata using computer vision. | |
| > β οΈ **AGPL-3.0 licence β read before integrating.** This model inherits the AGPL-3.0 licence from Ultralytics YOLO11. Embedding it in a product or service β including serving it behind a network API β requires open-sourcing the integrating application under AGPL-3.0, or obtaining a commercial [Ultralytics Enterprise Licence](https://www.ultralytics.com/license). Details in [License](#-license). | |
| --- | |
| ## π§ Task Overview | |
| - **Task:** Object Detection | |
| - **Target:** Individual UI elements | |
| - **Supported Labels:** | |
| ``` | |
| ['AXButton', 'AXDisclosureTriangle', 'AXImage', 'AXLink', 'AXTextArea'] | |
| ``` | |
| This model detects common interactive components typically surfaced in accessibility trees on macOS. | |
| --- | |
| ## π Dataset | |
| - Training data: [`macpaw-research/Screen2AX-Element`](https://huggingface.co/datasets/macpaw-research/Screen2AX-Element) | |
| --- | |
| ## π How to Use | |
| ### π§ Install Dependencies | |
| ```bash | |
| pip install huggingface_hub ultralytics | |
| ``` | |
| ### π§ͺ Load the Model and Run Predictions | |
| ```python | |
| from huggingface_hub import hf_hub_download | |
| from ultralytics import YOLO | |
| # Download the model | |
| model_path = hf_hub_download( | |
| repo_id="macpaw-research/yolov11l-ui-elements-detection", | |
| filename="ui-elements-detection.pt", | |
| ) | |
| # Load and run prediction | |
| model = YOLO(model_path) | |
| results = model.predict("/path/to/your/image") | |
| # Display result | |
| results[0].show() | |
| ``` | |
| --- | |
| ## π License | |
| This model is licensed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**, as inherited from the original YOLOv11 base model and the Ultralytics training framework. | |
| **What this means in practice:** | |
| - β **Research, evaluation, and open-source (AGPL) projects** β free to use, modify, and redistribute, provided derivative works are also released under AGPL-3.0. | |
| - β οΈ **Commercial or closed-source use** β AGPL-3.0 is a strong copyleft licence whose obligations also trigger on **network use**: shipping this model inside a proprietary application, or exposing it through a hosted API, requires releasing the integrating application's source code under AGPL-3.0. | |
| - πΌ **Need a proprietary integration?** Ultralytics offers a commercial [Enterprise Licence](https://www.ultralytics.com/license) that lifts the AGPL obligations for YOLO models and their derivatives, including fine-tunes such as this one. | |
| *This summary is provided for convenience and is not legal advice.* | |
| --- | |
| ## π Related Projects | |
| - [Screen2AX Project](https://github.com/MacPaw/Screen2AX) | |
| - [Screen2AX HuggingFace Collection](https://huggingface.co/collections/macpaw-research/screen2ax) | |
| - [YOLOv11l β UI Groups Detection](https://huggingface.co/macpaw-research/yolov11l-ui-groups-detection) | |
| --- | |
| ## βοΈ Citation | |
| If you use this model in your research, please cite the Screen2AX paper: | |
| ```bibtex | |
| @misc{muryn2025screen2axvisionbasedapproachautomatic, | |
| title={Screen2AX: Vision-Based Approach for Automatic macOS Accessibility Generation}, | |
| author={Viktor Muryn and Marta Sumyk and Mariya Hirna and Sofiya Garkot and Maksym Shamrai}, | |
| year={2025}, | |
| eprint={2507.16704}, | |
| archivePrefix={arXiv}, | |
| primaryClass={cs.LG}, | |
| url={https://arxiv.org/abs/2507.16704}, | |
| } | |
| ``` | |
| --- | |
| ## π MacPaw Research | |
| Learn more at [https://research.macpaw.com](https://research.macpaw.com) |