Ander Alvarez commited on
Commit
6e91496
·
verified ·
1 Parent(s): cce85fc

Initial visdrone-yolo9 weights + ONNX

Browse files
Files changed (3) hide show
  1. README.md +85 -0
  2. visdrone.onnx +3 -0
  3. visdrone.pt +3 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: libreyolo
3
+ pipeline_tag: object-detection
4
+ license: mit
5
+ tags:
6
+ - libreyolo
7
+ - yolov9
8
+ - visdrone
9
+ - aerial-imagery
10
+ - object-detection
11
+ datasets:
12
+ - Voxel51/VisDrone2019-DET
13
+ ---
14
+
15
+ # ander2221/visdrone-yolo9-preview
16
+
17
+ YOLOv9-t fine-tuned on VisDrone2019-DET aerial imagery using
18
+ [LibreYOLO](https://github.com/LibreYOLO/libreyolo). Ten classes
19
+ (pedestrian, people, bicycle, car, van, truck, tricycle, awning-tricycle,
20
+ bus, motor), top-down drone perspective.
21
+
22
+ **Companion use case:** [LibreYOLO/use-cases/visdrone-finetune](https://github.com/LibreYOLO/use-cases/tree/main/visdrone-finetune).
23
+
24
+ ## Training
25
+
26
+ - size: `t`
27
+ - imgsz: `384`
28
+ - epochs: `5`
29
+ - dataset: VisDrone2019-DET via Voxel51's HuggingFace mirror
30
+ - compute: Apple Metal Performance Shaders (MPS, M-series GPU)
31
+
32
+ ## Metrics
33
+
34
+ ```json
35
+ {}
36
+ ```
37
+
38
+ ## Usage — Python
39
+
40
+ ```python
41
+ from huggingface_hub import hf_hub_download
42
+ from libreyolo import LibreYOLO
43
+
44
+ ckpt = hf_hub_download(repo_id="ander2221/visdrone-yolo9-preview", filename="visdrone.pt")
45
+ model = LibreYOLO(ckpt)
46
+ result = model("aerial.jpg")
47
+ for box, cls, conf in zip(result.boxes.xyxy, result.boxes.cls, result.boxes.conf):
48
+ print(box, ["pedestrian","people","bicycle","car","van","truck","tricycle","awning-tricycle","bus","motor"][int(cls)], float(conf))
49
+ ```
50
+
51
+ ## Usage — ONNX (browser, edge, cross-runtime)
52
+
53
+ ```python
54
+ import onnxruntime as ort
55
+ from huggingface_hub import hf_hub_download
56
+
57
+ onnx = hf_hub_download(repo_id="ander2221/visdrone-yolo9-preview", filename="visdrone.onnx")
58
+ session = ort.InferenceSession(onnx, providers=["CPUExecutionProvider"])
59
+ # Preprocess image to (1, 3, 384, 384) float32 in [0,1] then:
60
+ out = session.run(None, {"images": preprocessed})
61
+ ```
62
+
63
+ A live browser demo using this ONNX is at
64
+ https://libreyolo.github.io/use-cases/visdrone-finetune/demo/
65
+ (zero-install, runs locally in Chrome via WebGPU/onnxruntime-web).
66
+
67
+ ## Classes (index → name)
68
+
69
+ | idx | name |
70
+ |---|---|
71
+ | 0 | pedestrian |
72
+ | 1 | people |
73
+ | 2 | bicycle |
74
+ | 3 | car |
75
+ | 4 | van |
76
+ | 5 | truck |
77
+ | 6 | tricycle |
78
+ | 7 | awning-tricycle |
79
+ | 8 | bus |
80
+ | 9 | motor |
81
+
82
+ ## License
83
+
84
+ MIT (the model file). Dataset (VisDrone2019-DET) is governed by its own
85
+ [license terms](http://aiskyeye.com/) — please review for your use case.
visdrone.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:717b44d17cf6d20c2cad643025c900da953f26a28c10bb2c7e399e4cce0fc3c8
3
+ size 8319986
visdrone.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:718250e71807d0c1f9bbb121a8ded6c514d2e495f0dd23de23a4de324f02f77c
3
+ size 16785037