vagheshpatel commited on
Commit
efd87b7
·
verified ·
1 Parent(s): d11b58c

Sync object-detection from metro-analytics-catalog

Browse files
Files changed (1) hide show
  1. README.md +4 -2
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 and add vapostproc after decodebin.
 
 
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 `decodebin` for zero-copy color conversion.
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
  ---