Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 0c8b1d4

Browse files
authored
YOLO example - annotation application (#180)
* YOLO example - annotation application * quality * standardize video outputs to 60FPS minimum * calculate target FPS for video annotations so durations match source * don't round adjusted fps * overwrite original FPS with real time target * use manually named temporary file * FPS counter * fps counter fix * remove video loader frame dropping * --target-fps support * update annotation colors * remove hard check for target fps * function name fix * change all colors to blue * webcam support * quality * add constant FPS for target FPS images_per_sec annotations, overwrite original file when target FPS present * documentation * images per sec formatting
1 parent cc2ba1d commit 0c8b1d4

File tree

3 files changed

+787
-7
lines changed

3 files changed

+787
-7
lines changed

integrations/ultralytics/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,21 @@ Note: on new Ubuntu systems, to install `cv2` running `sudo apt-get update && ap
140140
may be necessary.
141141

142142

143+
### Annotation Example
144+
`annotate.py` is a script for using YOLOv3 sparsified (and not sparsified) YOLOv3 models
145+
to run inferences on images, videos, or webcam streams. For a full list of options
146+
`python annotate.py -h`.
147+
148+
To run pruned-quantized YOLOv3 on a local webcam run:
149+
```bash
150+
python annotate.py \
151+
zoo:cv/detection/yolo_v3-spp/pytorch/ultralytics/coco/pruned_quant-aggressive_94 \
152+
--source 0 \
153+
--quantized-inputs \
154+
--image-shape 416 416
155+
```
156+
157+
143158
### Benchmarking
144159
`benchmarking.py` is a script for benchmarking sparsified and quantized YOLOv3
145160
performance with DeepSparse. For a full list of options run `python benchmarking.py -h`.

0 commit comments

Comments
 (0)