ruudra commited on
Commit
e9e4592
·
1 Parent(s): 28b894a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -1,3 +1,20 @@
1
  ---
2
  pipeline_tag: object-detection
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  pipeline_tag: object-detection
3
+ ---
4
+
5
+ ### How to use
6
+
7
+ Here is how to use this model:
8
+
9
+ ```python
10
+ %cd trial-obj-det/yolov5
11
+ !pip install -qr requirements.txt # install dependencies (ignore errors)
12
+ import torch
13
+ from IPython.display import Image, clear_output # to display images
14
+ from utils.downloads import attempt_download # to download models/datasets
15
+
16
+ # use the best weights!
17
+ %cd trial-obj-det/yolov5
18
+ !python detect.py --weights ../best.pt --img 416 --conf 0.4 --source img.png
19
+ ```
20
+