Commit 1e7b65f
committed
fix: async detection for YOLO and Roboflow processors
- Remove fps parameter from moondream processors (use detection_fps only)
- Add async detection pattern to YOLOPoseProcessor with detection_fps=15.0
- Fix YOLOPoseVideoTrack to output at 30 FPS (was 1 FPS)
- Add async detection pattern to RoboflowCloudDetectionProcessor with detection_fps=5.0
- Add async detection pattern to RoboflowLocalDetectionProcessor with detection_fps=10.0
- All processors now pass frames through at full FPS while detection runs in background1 parent f68dc9c commit 1e7b65f
File tree
5 files changed
+318
-205
lines changed- plugins
- moondream/vision_agents/plugins/moondream/detection
- roboflow/vision_agents/plugins/roboflow
- ultralytics/vision_agents/plugins/ultralytics
5 files changed
+318
-205
lines changedLines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | | - | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
| |||
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
125 | | - | |
| 122 | + | |
126 | 123 | | |
127 | 124 | | |
128 | 125 | | |
| |||
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
144 | | - | |
| 141 | + | |
145 | 142 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 143 | + | |
149 | 144 | | |
150 | | - | |
| 145 | + | |
151 | 146 | | |
152 | 147 | | |
153 | | - | |
| 148 | + | |
154 | 149 | | |
155 | 150 | | |
156 | | - | |
157 | | - | |
| 151 | + | |
158 | 152 | | |
159 | 153 | | |
160 | 154 | | |
| |||
232 | 226 | | |
233 | 227 | | |
234 | 228 | | |
235 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
236 | 232 | | |
237 | 233 | | |
238 | 234 | | |
| |||
275 | 271 | | |
276 | 272 | | |
277 | 273 | | |
278 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
| |||
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | | - | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
| |||
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
138 | | - | |
| 135 | + | |
139 | 136 | | |
140 | 137 | | |
141 | 138 | | |
| |||
241 | 238 | | |
242 | 239 | | |
243 | 240 | | |
| 241 | + | |
244 | 242 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 243 | + | |
248 | 244 | | |
249 | | - | |
| 245 | + | |
250 | 246 | | |
251 | 247 | | |
| 248 | + | |
252 | 249 | | |
253 | 250 | | |
254 | | - | |
255 | | - | |
| 251 | + | |
256 | 252 | | |
257 | 253 | | |
258 | 254 | | |
| |||
322 | 318 | | |
323 | 319 | | |
324 | 320 | | |
325 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
326 | 324 | | |
327 | 325 | | |
328 | 326 | | |
| |||
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments