vagheshpatel commited on
Commit
358bb3d
·
verified ·
1 Parent(s): da600a5

Sync person-detection from metro-analytics-catalog

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