Repository navigation
Add stock LPOSS inference runner with explicit maskclip_raw / lposs / lposs_plus modes - #58
Merged
InsightofSPb merged 12 commits intoAug 26, 2026
Conversation
…58-with-requested-fixes Harden stock LPOSS inference: PyTorch-1.12 compatibility, pinned upstream, memory preflights, provenance and parity harness
chore: ignore local datasets and experiment artifacts
…tate-hashing-fix-to-pr-#58 Fix scalar-state hashing for PyTorch 1.12 in state hashing utilities
InsightofSPb
deleted the
codex/integrate-genuine-lposs-inference-in-repository
branch
August 26, 2026 19:06
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.
Motivation
FineTuneWrapper-based paths invokedclip_backboneand MaskCLIP decode-head probabilities directly, bypassingLPOSS.forward(DINO extraction, patch affinity graph, LPOSS label propagation, and LPOSS+ pixel refinement).segmentation/evaluation/lposs_eval.pyallocated solver tensors on a hardcoded generic CUDA device and contained a duplicated conditional-expression inLPOSS_Infrencer.forward, and the legacy head appliedsoftmaxbefore any propagation so probabilities were treated like logits.Description
ovs_heritage/stock_lposs.pyexposing three explicit modes:maskclip_raw(frozen MaskCLIP features → raw cosine seed scores),lposs(adds frozen DINO extraction + patch-level LPOSS propagation), andlposs_plus(adds LPOSS+ pixel refinement), with injectable propagator and truthful stage metadata inExecutionMetadata.python -m ovs_heritage.infer_ovs(ovs_heritage/infer_ovs.py) supporting single image / directory / manifest input, explicit model config, canonical vocabulary reuse, extra runtime concepts, device selection, optional score saving, optional ledger recording, and deterministicrun_manifest.jsonoutput; the CLI rejects silent slide-mode approximations and documents behavior and provenance.UpstreamGraphPropagatorcallingsegmentation/evaluation/lposs_eval.pygraph builders and solvers, and made the solver device-aware to avoid hardcoded `Codex Task