Update README.md
Browse files
README.md
CHANGED
@@ -1,35 +1,24 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
-
|
8 |
-
|
9 |
-
-
|
10 |
-
|
11 |
-
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
from
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
def fetch_image(url):
|
26 |
-
return Image.open(requests.get(url, stream=True).raw)
|
27 |
-
|
28 |
-
image = fetch_image("https://ultralytics.com/images/zidane.jpg")
|
29 |
-
|
30 |
-
# Perform inference
|
31 |
-
inputs = processor(images=image, return_tensors="pt")
|
32 |
-
outputs = model(**inputs)
|
33 |
-
|
34 |
-
# Print detected objects
|
35 |
-
print(outputs)
|
|
|
1 |
+
# RTDETR Model on COCO8 Dataset
|
2 |
+
|
3 |
+
This model is a **Vision Transformer** (ViT) based object detection and tracking model, trained on the **COCO8** dataset, which contains images of people wearing coats (`1`) and people without coats (`0`).
|
4 |
+
|
5 |
+
## Model Details
|
6 |
+
|
7 |
+
- **Model Type**: RTDETR (a Vision Transformer based object detection and tracking model)
|
8 |
+
- **Trained On**: COCO8 dataset (people with and without coats)
|
9 |
+
- **Training Epochs**: 100 epochs
|
10 |
+
- **Input Size**: 640x640 pixels
|
11 |
+
- **Output**: Classifies images into two categories:
|
12 |
+
- `1`: People wearing coats
|
13 |
+
- `0`: People not wearing coats
|
14 |
+
|
15 |
+
## How to Use
|
16 |
+
|
17 |
+
You can use this model directly from the Hugging Face Hub. Below is an example of how to use it for inference on your images.
|
18 |
+
|
19 |
+
### Install Dependencies
|
20 |
+
|
21 |
+
First, ensure you have the `transformers` and `torch` libraries installed:
|
22 |
+
|
23 |
+
```bash
|
24 |
+
pip install transformers torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|