Commit
•
68da5b8
1
Parent(s):
4134d57
Update README.md
Browse files
README.md
CHANGED
@@ -100,11 +100,17 @@ inferencer = MMPoseInferencer(
|
|
100 |
pose2d_weights='./synthpose-hrnet-48-mmpose/hrnet-w48_dark.pth'
|
101 |
)
|
102 |
|
103 |
-
url = "
|
104 |
result_generator = inferencer([url], pred_out_dir='predictions', vis_out_dir='visualizations')
|
105 |
results = next(result_generator)
|
106 |
```
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
## Video inference
|
109 |
|
110 |
To run inference on a video, simply replace the last two lines with
|
@@ -112,4 +118,5 @@ To run inference on a video, simply replace the last two lines with
|
|
112 |
```python
|
113 |
result_generator = inferencer("football.mp4", pred_out_dir='predictions', vis_out_dir='visualizations')
|
114 |
results = [result for result in result_generator]
|
115 |
-
```
|
|
|
|
100 |
pose2d_weights='./synthpose-hrnet-48-mmpose/hrnet-w48_dark.pth'
|
101 |
)
|
102 |
|
103 |
+
url = "http://farm4.staticflickr.com/3300/3416216247_f9c6dfc939_z.jpg"
|
104 |
result_generator = inferencer([url], pred_out_dir='predictions', vis_out_dir='visualizations')
|
105 |
results = next(result_generator)
|
106 |
```
|
107 |
|
108 |
+
The following visualization will be saved:
|
109 |
+
<p>
|
110 |
+
<img src="inference_example.jpg" width=375>
|
111 |
+
</p>
|
112 |
+
Where the keypoints part of the skeleton are the COCO keypoints, and the pink ones the anatomical markers.
|
113 |
+
|
114 |
## Video inference
|
115 |
|
116 |
To run inference on a video, simply replace the last two lines with
|
|
|
118 |
```python
|
119 |
result_generator = inferencer("football.mp4", pred_out_dir='predictions', vis_out_dir='visualizations')
|
120 |
results = [result for result in result_generator]
|
121 |
+
```
|
122 |
+
|