anurag2506 commited on
Commit
2c3e733
·
verified ·
1 Parent(s): 2ccb18d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -35
README.md CHANGED
@@ -1,35 +1,24 @@
1
- ---
2
- license: apache-2.0
3
- metrics:
4
- - accuracy
5
- pipeline_tag: object-detection
6
- datasets:
7
- - Ultralytics/COCO8
8
- language:
9
- - en
10
- base_model:
11
- - PekingU/rtdetr_r101vd
12
- ---
13
-
14
- ## Usage:
15
- ```python
16
- from transformers import AutoModelForObjectDetection, AutoImageProcessor
17
- from PIL import Image
18
- import requests
19
-
20
- # Load model and processor
21
- model = AutoModelForObjectDetection.from_pretrained("your-username/rtdetr-coco8")
22
- processor = AutoImageProcessor.from_pretrained("your-username/rtdetr-coco8")
23
-
24
- # Load an image for object detection
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