Sync object-detection from metro-analytics-catalog
Browse files
README.md
CHANGED
|
@@ -220,7 +220,9 @@ from gstgva import VideoFrame
|
|
| 220 |
|
| 221 |
Gst.init(None)
|
| 222 |
|
| 223 |
-
# For GPU: change device=CPU to device=GPU
|
|
|
|
|
|
|
| 224 |
# For NPU: change device=CPU to device=NPU (batch-size=1 recommended).
|
| 225 |
pipeline_str = (
|
| 226 |
"filesrc location=test.jpg ! jpegdec ! videoconvert ! "
|
|
@@ -258,7 +260,7 @@ pipeline.set_state(Gst.State.NULL)
|
|
| 258 |
**Device targets:**
|
| 259 |
|
| 260 |
- `device=CPU` -- default in the sample code.
|
| 261 |
-
- `device=GPU` -- add `vapostproc` after `
|
| 262 |
- `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
|
| 263 |
|
| 264 |
---
|
|
|
|
| 220 |
|
| 221 |
Gst.init(None)
|
| 222 |
|
| 223 |
+
# For GPU: change device=CPU to device=GPU, add vapostproc !
|
| 224 |
+
# video/x-raw(memory:VASurface) after jpegdec, and set
|
| 225 |
+
# pre-process-backend=vaapi-surface-sharing on gvadetect.
|
| 226 |
# For NPU: change device=CPU to device=NPU (batch-size=1 recommended).
|
| 227 |
pipeline_str = (
|
| 228 |
"filesrc location=test.jpg ! jpegdec ! videoconvert ! "
|
|
|
|
| 260 |
**Device targets:**
|
| 261 |
|
| 262 |
- `device=CPU` -- default in the sample code.
|
| 263 |
+
- `device=GPU` -- add `vapostproc ! video/x-raw(memory:VASurface)` after `jpegdec` and set `pre-process-backend=vaapi-surface-sharing` on `gvadetect`.
|
| 264 |
- `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
|
| 265 |
|
| 266 |
---
|