Instructions to use 40Hz/autoresearch-ui-detr-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 40Hz/autoresearch-ui-detr-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="40Hz/autoresearch-ui-detr-v1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("40Hz/autoresearch-ui-detr-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
autoresearch-ui-detr-v1
UI element detection fine-tune of facebook/detr-resnet-50 on
mrtoy/mobile-ui-design (4 target classes remapped from the source schema).
Track
- Track: ui_detr (Gate 2)
- Config: 8 epochs, batch 4, grad-accum 4, fp16, T4-class hardware
- Classes:
rectangle,text,image,group - Train data: 2000-row slice of
mrtoy/mobile-ui-design, 10% held out (fixed seed 42) - Training platform: Colab T4 (ZeroGPU free quota is 5 min/day โ cannot train; Space is serving-only)
Acceptance gate
eval_map >= 0.35on the held-out set, no class collapses to zero AP (per-class mAP reported byautoresearch-local/evals/eval_ui_detr.py).- Status: training pending โ run
train_ui_detr.py(Colab T4 notebooktracks/ui_detr_colab.ipynb), theneval_ui_detr.py.
Usage
from transformers import DetrImageProcessor, DetrForObjectDetection
proc = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50", revision="no_timm")
model = DetrForObjectDetection.from_pretrained(
"40Hz/autoresearch-ui-detr-v1",
id2label={0:"rectangle",1:"text",2:"image",3:"group"},
label2id={"rectangle":0,"text":1,"image":2,"group":3},
ignore_mismatched_sizes=True)
Model tree for 40Hz/autoresearch-ui-detr-v1
Base model
facebook/detr-resnet-50