thevyasamit commited on
Commit
2cc7666
·
verified ·
1 Parent(s): 57d5365

Upload folder using huggingface_hub

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. README.md +45 -0
  3. args.yaml +106 -0
  4. best.pt +3 -0
  5. results.png +3 -0
  6. yolo_data.yaml +6 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ results.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ultralytics
3
+ tags:
4
+ - object-detection
5
+ - yolo
6
+ - yolo9
7
+ - animals
8
+ - CAN-Benchmark
9
+ license: mit
10
+ datasets:
11
+ - ICICLE-AI/CAN_Benchmark
12
+ task: object-detection
13
+ ---
14
+
15
+ # YOLOv9 – Animal Detection (Zebra, Impala, Giraffe)
16
+
17
+ This model is a **YOLOv9** detector fine-tuned with [Ultralytics](https://github.com/ultralytics/ultralytics).
18
+ It was trained for **50 epochs** on a **subset** of the [ICICLE-AI/CAN_Benchmark](https://huggingface.co/datasets/ICICLE-AI/CAN_Benchmark) dataset containing three species:
19
+
20
+ - **0 → zebra**
21
+ - **1 → impala**
22
+ - **2 → giraffe**
23
+
24
+ ## 📊 Training details
25
+ - Framework: Ultralytics YOLOv9
26
+ - Epochs: 50
27
+ - See full hyperparameters in [`args.yaml`](./args.yaml)
28
+
29
+ The model converged by ~40 epochs, and shows strong precision/recall on the held-out validation set:
30
+
31
+ ![Training curves](./results.png)
32
+
33
+ ## 🚀 Usage
34
+
35
+ Load the model directly from the Hugging Face Hub:
36
+
37
+ ```python
38
+ from ultralytics import YOLO
39
+
40
+ # Load model from HF Hub
41
+ model = YOLO("ICICLE-AI/yolov9-animals-AE-data")
42
+
43
+ # Run inference
44
+ results = model("demo.jpg")
45
+ results[0].show()
args.yaml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: detect
2
+ mode: train
3
+ model: yolov9c.pt
4
+ data: yolo_data.yaml
5
+ epochs: 50
6
+ time: null
7
+ patience: 100
8
+ batch: 16
9
+ imgsz: 640
10
+ save: true
11
+ save_period: -1
12
+ cache: false
13
+ device: 0,1,2,3
14
+ workers: 8
15
+ project: null
16
+ name: train
17
+ exist_ok: false
18
+ pretrained: true
19
+ optimizer: auto
20
+ verbose: true
21
+ seed: 0
22
+ deterministic: true
23
+ single_cls: false
24
+ rect: false
25
+ cos_lr: false
26
+ close_mosaic: 10
27
+ resume: false
28
+ amp: true
29
+ fraction: 1.0
30
+ profile: false
31
+ freeze: null
32
+ multi_scale: false
33
+ compile: false
34
+ overlap_mask: true
35
+ mask_ratio: 4
36
+ dropout: 0.0
37
+ val: true
38
+ split: val
39
+ save_json: false
40
+ conf: null
41
+ iou: 0.7
42
+ max_det: 300
43
+ half: false
44
+ dnn: false
45
+ plots: true
46
+ source: null
47
+ vid_stride: 1
48
+ stream_buffer: false
49
+ visualize: false
50
+ augment: false
51
+ agnostic_nms: false
52
+ classes: null
53
+ retina_masks: false
54
+ embed: null
55
+ show: false
56
+ save_frames: false
57
+ save_txt: false
58
+ save_conf: false
59
+ save_crop: false
60
+ show_labels: true
61
+ show_conf: true
62
+ show_boxes: true
63
+ line_width: null
64
+ format: torchscript
65
+ keras: false
66
+ optimize: false
67
+ int8: false
68
+ dynamic: false
69
+ simplify: true
70
+ opset: null
71
+ workspace: null
72
+ nms: false
73
+ lr0: 0.01
74
+ lrf: 0.01
75
+ momentum: 0.937
76
+ weight_decay: 0.0005
77
+ warmup_epochs: 3.0
78
+ warmup_momentum: 0.8
79
+ warmup_bias_lr: 0.1
80
+ box: 7.5
81
+ cls: 0.5
82
+ dfl: 1.5
83
+ pose: 12.0
84
+ kobj: 1.0
85
+ nbs: 64
86
+ hsv_h: 0.015
87
+ hsv_s: 0.7
88
+ hsv_v: 0.4
89
+ degrees: 0.0
90
+ translate: 0.1
91
+ scale: 0.5
92
+ shear: 0.0
93
+ perspective: 0.0
94
+ flipud: 0.0
95
+ fliplr: 0.5
96
+ bgr: 0.0
97
+ mosaic: 1.0
98
+ mixup: 0.0
99
+ cutmix: 0.0
100
+ copy_paste: 0.0
101
+ copy_paste_mode: flip
102
+ auto_augment: randaugment
103
+ erasing: 0.4
104
+ cfg: null
105
+ tracker: botsort.yaml
106
+ save_dir: /users/PAS2271/thevyasamit/Desktop/Projects/fine_tune_yolo9/runs/detect/train
best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bddf4ba5e45edcfceaf9f5d28c7b0ef683555af141d6652414dbf4986d8f57bb
3
+ size 51569548
results.png ADDED

Git LFS Details

  • SHA256: 3fcf5e23c6bbb308f5fb75d46ce7687c5fec949837f959067110be7934f38dce
  • Pointer size: 131 Bytes
  • Size of remote file: 351 kB
yolo_data.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ path: .
2
+ train: autosplit_train.txt
3
+ val: autosplit_val.txt
4
+ test: autosplit_test.txt
5
+ nc: 3
6
+ names: ['zebra','impala','giraffe']