8000 feat(objects): find objects with anytopdf, without ONNX Runtime in Lens by adeelahmad · Pull Request #228 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(objects): find objects with anytopdf, without ONNX Runtime in Lens - #228

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-272b8m
Oct 7, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-272b8m

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: finding objects with YOLOX needed ONNX Runtime installed in Lens's Python, which is heavy on a lean server or a Raspberry Pi.

After: Settings › Video › Object detector has a new choice, "YOLOX run by anytopdf". It runs the same YOLOX model through anytopdf's objects plugin, sandboxed with no network, so Lens needs no ONNX Runtime. The default stays YOLOX on ONNX Runtime.

How: objects.AnytopdfObjects calls anytopdf.analyze(cfg, picture, {"ANYTOPDF_OBJECTS_MODEL": yolox model}) from #221, keeps the objects at or above video.object_min_score and drops the faces. Components fetch anytopdf and YOLOX-s for the objects step when this engine is picked, and skip ONNX Runtime. The settings check, the Settings select, docs and changelog take the new value. anytopdf 0.4.0 was tested to find the same bus and four people with Lens's yolox_s.onnx.

🤖 Generated with Claude Code

https://claude.ai/code/session_017tSHQyVLSbfTQvLeoPeMmW


Generated by Claude Code

video.object_engine = anytopdf runs Lens's YOLOX model through anytopdf's
objects plugin (anytopdf.analyze, sandboxed with no network). Components
fetch anytopdf and the model for the objects step, not ONNX Runtime. The
default stays yolox.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tSHQyVLSbfTQvLeoPeMmW
@adeelahmad adeelahmad self-assigned this Oct 7, 2026
…-272b8m

# Conflicts:
#	CHANGELOG.md
#	fastapi_backend/app/domain/components.py
@adeelahmad
adeelahmad merged commit 7ddcb21 into main Oct 7, 2026
7 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-272b8m branch October 7, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0