Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -53,4 +53,36 @@ configs:
|
|
| 53 |
data_files:
|
| 54 |
- split: test
|
| 55 |
path: data/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
data_files:
|
| 54 |
- split: test
|
| 55 |
path: data/test-*
|
| 56 |
+
tags:
|
| 57 |
+
- hf-jobs
|
| 58 |
+
- object-detection
|
| 59 |
+
- uv-script
|
| 60 |
---
|
| 61 |
+
|
| 62 |
+
# Class-list detection with WeVisOne-VL
|
| 63 |
+
|
| 64 |
+
Boxes for `Coverall`, `Face_Shield`, `Gloves`, `Goggles`, `Mask` on `rishitdagli/cppe-5` (split `test`), from
|
| 65 |
+
[tencent/WeVisOne-VL-4B](https://huggingface.co/tencent/WeVisOne-VL-4B).
|
| 66 |
+
20 images, 20 with at least one detection,
|
| 67 |
+
130 detections. 14 boxes share their region with a box of another class (see `alt_labels`).
|
| 68 |
+
|
| 69 |
+
These are **zero-shot labels**: no human checked them. Treat them as a first pass for review.
|
| 70 |
+
|
| 71 |
+
## Columns added
|
| 72 |
+
|
| 73 |
+
- `detections`: list of `{bbox: [x1, y1, x2, y2], label, sub_label, alt_labels}`. `bbox` is in
|
| 74 |
+
original-image pixels. `sub_label` is always empty (WeVisOne gives class labels only); it is
|
| 75 |
+
there so the schema matches `qwen3vl-detect.py`. `alt_labels` lists other classes the model
|
| 76 |
+
gave the same region (IoU >= 0.8); WeVisOne answers each class on its own,
|
| 77 |
+
so one object can carry several class names.
|
| 78 |
+
- `raw_response`: the model's raw answer, for re-parsing.
|
| 79 |
+
- `inference_info`: JSON with the model, prompt, classes, image size and settings.
|
| 80 |
+
|
| 81 |
+
## Reproduction
|
| 82 |
+
|
| 83 |
+
Produced on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs) (`a10g-small`) with the [`wevisone-detect.py`](https://huggingface.co/datasets/uv-scripts/vlm-object-detection/raw/main/wevisone-detect.py) recipe from [uv-scripts](https://huggingface.co/uv-scripts). Run it yourself:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
hf jobs uv run --flavor a10g-small https://huggingface.co/datasets/uv-scripts/vlm-object-detection/raw/main/wevisone-detect.py \
|
| 87 |
+
rishitdagli/cppe-5 <output-dataset> --classes Coverall,Face_Shield,Gloves,Goggles,Mask --split test --max-samples 20 --shuffle --seed 42
|
| 88 |
+
```
|