Sync person-detection from metro-analytics-catalog
Browse files
README.md
CHANGED
|
@@ -207,7 +207,9 @@ from gstgva import VideoFrame
|
|
| 207 |
|
| 208 |
Gst.init(None)
|
| 209 |
|
| 210 |
-
# For GPU: change device=CPU to device=GPU
|
|
|
|
|
|
|
| 211 |
# For NPU: change device=CPU to device=NPU (batch-size=1 recommended).
|
| 212 |
pipeline_str = (
|
| 213 |
"filesrc location=test.jpg ! jpegdec ! videoconvert ! "
|
|
@@ -244,7 +246,7 @@ pipeline.set_state(Gst.State.NULL)
|
|
| 244 |
**Device targets:**
|
| 245 |
|
| 246 |
- `device=CPU` -- default in the sample code.
|
| 247 |
-
- `device=GPU` -- add `vapostproc` after `
|
| 248 |
- `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
|
| 249 |
|
| 250 |
---
|
|
|
|
| 207 |
|
| 208 |
Gst.init(None)
|
| 209 |
|
| 210 |
+
# For GPU: change device=CPU to device=GPU, add vapostproc !
|
| 211 |
+
# video/x-raw(memory:VASurface) after jpegdec, and set
|
| 212 |
+
# pre-process-backend=vaapi-surface-sharing on gvadetect.
|
| 213 |
# For NPU: change device=CPU to device=NPU (batch-size=1 recommended).
|
| 214 |
pipeline_str = (
|
| 215 |
"filesrc location=test.jpg ! jpegdec ! videoconvert ! "
|
|
|
|
| 246 |
**Device targets:**
|
| 247 |
|
| 248 |
- `device=CPU` -- default in the sample code.
|
| 249 |
+
- `device=GPU` -- add `vapostproc ! video/x-raw(memory:VASurface)` after `jpegdec` and set `pre-process-backend=vaapi-surface-sharing` on `gvadetect`.
|
| 250 |
- `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
|
| 251 |
|
| 252 |
---
|