Commit
·
edbf0b3
1
Parent(s):
adc76b7
Update README.md
Browse files
README.md
CHANGED
@@ -10,6 +10,7 @@ library_name: transformers
|
|
10 |
tags:
|
11 |
- object detection
|
12 |
- vision
|
|
|
13 |
pipeline_tag: object-detection
|
14 |
---
|
15 |
|
@@ -30,11 +31,15 @@ You can use the raw model for object detection on cashew images.
|
|
30 |
|
31 |
- Load model and perform prediction:
|
32 |
|
|
|
|
|
|
|
|
|
33 |
```python
|
34 |
import torch
|
35 |
|
36 |
# load model
|
37 |
-
model = torch.hub.load('ultralytics/yolov5', '
|
38 |
|
39 |
# Images
|
40 |
img = ['/path/to/CADI-AI-image.jpg']# batch of images
|
|
|
10 |
tags:
|
11 |
- object detection
|
12 |
- vision
|
13 |
+
- yolo
|
14 |
pipeline_tag: object-detection
|
15 |
---
|
16 |
|
|
|
31 |
|
32 |
- Load model and perform prediction:
|
33 |
|
34 |
+
```bash
|
35 |
+
pip install -U ultralytics
|
36 |
+
```
|
37 |
+
|
38 |
```python
|
39 |
import torch
|
40 |
|
41 |
# load model
|
42 |
+
model = torch.hub.load('ultralytics/yolov5', 'custom', path='CADI-AI/yolov5_0.65map_exp7_best.pt', force_reload=True)
|
43 |
|
44 |
# Images
|
45 |
img = ['/path/to/CADI-AI-image.jpg']# batch of images
|