File size: 1,267 Bytes
72ad2b7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Guns-100-11m

## Model Overview

**Architecture:** YOLOv11  
**Training Epochs:** 100  
**Batch Size:** 32  
**Optimizer:** auto  
**Learning Rate:** 0.0005  
**Data Augmentation Level:** Moderate

## Training Metrics

- **[email protected]:** 0.85476

## Class IDs

| Class ID | Class Name |
|----------|------------|
| 0 | Gun |
| 1 | Knife |


## Datasets Used

- gun-detection-xwosb_v8
- gun-sqvhj_v1
- people_with_guns_2-pvcnk_v9
- police1_v1
- soldier-wclp7_v1
- test-e46au_v1
- weapon-rl8c4_v3
- weapondetection-fdzlo_v4
- weapons-detection-x9fnq_v3
- wepon_detection_v1

## Class Image Counts

| Class Name | Image Count |
|------------|-------------|
| Gun | 44219 |
| Knife | 4038 |


## Description

This model was trained using the YOLOv11 architecture on a custom dataset. The training process involved 100 epochs with a batch size of 32. The optimizer used was **auto** with an initial learning rate of 0.0005. Data augmentation was set to the **Moderate** level to enhance model robustness.

## Usage

To use this model for inference, follow the instructions below:

```python
from ultralytics import YOLO

# Load the trained model
model = YOLO('best.pt')

# Perform inference on an image
results = model('path_to_image.jpg')

# Display results
results.show()