Gate Part 1: Merging Exisiting XFeat Orientation Repo + Reorganizing Gate to Propsed Structure - #65
Open
harshi-puli wants to merge 3 commits into
Open
Gate Part 1: Merging Exisiting XFeat Orientation Repo + Reorganizing Gate to Propsed Structure#65harshi-puli wants to merge 3 commits into
harshi-puli wants to merge 3 commits into
Conversation
Port Raymond Tong's classical and XFeat gate-orientation prototypes into the gate package. Add package-relative imports, minimal XFeat runtime modules, Apache-2.0 licensing, test package placeholders, and the required tqdm dependency.
Gate orientation changes
harshi-puli
marked this pull request as ready for review
August 7, 2026 01:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reorganizes the
gatetask to match theclassical//yolo//tests/convention and merges in the gate-orientation prototypes fromraymondt31/UR-B-Perception.GateCenterAlgo.py,GateSegmentationAlgoA/B/C.py, and the oldarchive/scripts intogate/classical/. Added emptygate/yolo/andgate/tests/as placeholders (no YOLO model or tests exist yet). Updatedperception/__init__.py'sALGOSimports to the new paths.gate/orientation/, ported as-is from UR-B-Perception:classical_orientation.py— LAB-color segmentation approach for post-detection orientation refinement (takes a YOLO box as input).xfeat_orientation.py— XFeat-based homography matching against a static reference image, live webcam loop.modules/— the XFeat model itself (xfeat.py,model.py,interpolator.py,lighterglue.py), adapted for package-relative imports.tqdmtorequirements-torch.txt(XFeat dependency).Notes
TaskPerceiverinterface or tested; tracked as follow-up.Test plan
pytestpasses (classical gate algorithms unaffected)ALGOSimports resolve (gateseg,gatesegA/B/C)classical_orientation.py/xfeat_orientation.pystill run standalone post-move