vagheshpatel commited on
Commit
7dc3521
·
verified ·
1 Parent(s): 658b8ca

Sync vehicle-detection from metro-analytics-catalog

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -211,7 +211,9 @@ Gst.init(None)
211
 
212
  VEHICLE_LABELS = {"car", "motorcycle", "bus", "truck"}
213
 
214
- # For GPU: change device=CPU to device=GPU and add vapostproc after decodebin.
 
 
215
  # For NPU: change device=CPU to device=NPU (batch-size=1 recommended).
216
  pipeline_str = (
217
  "filesrc location=test.jpg ! jpegdec ! videoconvert ! "
@@ -251,7 +253,7 @@ pipeline.set_state(Gst.State.NULL)
251
  **Device targets:**
252
 
253
  - `device=CPU` -- default in the sample code.
254
- - `device=GPU` -- add `vapostproc` after `decodebin` for zero-copy color conversion.
255
  - `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
256
 
257
  ---
 
211
 
212
  VEHICLE_LABELS = {"car", "motorcycle", "bus", "truck"}
213
 
214
+ # For GPU: change device=CPU to device=GPU, add vapostproc !
215
+ # video/x-raw(memory:VASurface) after jpegdec, and set
216
+ # pre-process-backend=vaapi-surface-sharing on gvadetect.
217
  # For NPU: change device=CPU to device=NPU (batch-size=1 recommended).
218
  pipeline_str = (
219
  "filesrc location=test.jpg ! jpegdec ! videoconvert ! "
 
253
  **Device targets:**
254
 
255
  - `device=CPU` -- default in the sample code.
256
+ - `device=GPU` -- add `vapostproc ! video/x-raw(memory:VASurface)` after `jpegdec` and set `pre-process-backend=vaapi-surface-sharing` on `gvadetect`.
257
  - `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
258
 
259
  ---