Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2024-05-18 - YOLO Stdout Blocking Overhead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟑 Minor

Doc date appears incorrect.

The entry is dated 2024-05-18, but this PR was opened on 2026-04-21. Consider updating to the actual authoring date so the learning log stays chronologically meaningful.

πŸ“ Proposed fix
-## 2024-05-18 - YOLO Stdout Blocking Overhead
+## 2026-04-21 - YOLO Stdout Blocking Overhead
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## 2024-05-18 - YOLO Stdout Blocking Overhead
## 2026-04-21 - YOLO Stdout Blocking Overhead
πŸ€– Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.jules/bolt.md at line 1, Update the doc header line "## 2024-05-18 - YOLO
Stdout Blocking Overhead" to the correct authoring date (e.g., "## 2026-04-21 -
YOLO Stdout Blocking Overhead") so the entry is chronologically accurate; locate
that exact header string in .jules/bolt.md and replace the date only, leaving
the title text unchanged.

**Learning:** Ultralytics YOLO models by default output synchronous progress logs to stdout during `.predict()`. This synchronous I/O blocking can significantly slow down prediction loops in production applications where the logs are not useful.
**Action:** Always pass `verbose=False` to `model.predict()` when using YOLO models in automated processing pipelines to avoid unnecessary I/O blocking.
2 changes: 2 additions & 0 deletions commonforms/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def extract_widgets(
conf=confidence,
augment=False,
imgsz=ONNX_IMAGE_SIZE,
verbose=False, # Optimization: prevent synchronous stdout blocking overhead
)
for p in pages
]
Expand All @@ -135,6 +136,7 @@ def extract_widgets(
augment=True,
imgsz=image_size,
device=self.device,
verbose=False, # Optimization: prevent synchronous stdout blocking overhead
)

widgets = {}
Expand Down