Repository navigation
Conversation
Register alignment operators per modality combination and load them lazily like the other builtin operators. Rename " orb_alignment.py" (leading space) to orb_alignment.py and fix its constructor, matcher and descriptor handling. Alignment.apply_matching now tags matched metadata with the matching index and fills unmatched instances with a placeholder. Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every loader now records the file an instance was read from under the "file" metadata key (JSON instances additionally keep their "file_idx"). For lazily loaded images and videos the path is attached when the cached metadata is copied, so existing stats caches stay valid. VideoLoader gets an optional ext parameter. Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OCRLoader extracts the text of images with Tesseract and exposes it as a TEXT modality. It is exported lazily, so pytesseract is only required when the loader is used. Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ling - UnimodalModality.apply_representation(s) take an apply_padding flag - TranscriptLoader runs Whisper on the detected GPU and falls back to CPU - TransformedModality.context keeps the data when a context operator only annotates metadata and returns None - Contrastive learning names anchor/augmentation modalities and can cap the number of negatives per positive - Modality errors in the unimodal optimizer are printed to stderr Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PairedModality wraps two or more modalities of the same type (e.g. a retrieval corpus and its queries) and applies every operation to each of them, with a per-modality allow list of operations. Representations with an unsupervised fit requirement are fitted once on the corpus side and applied to all sides via transform_fitted, so the pair stays in one feature space. AggregatedRepresentation is dispatched through the modality so that a pair can fan it out. Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AlignmentGraph models groups of implicitly aligned modalities as nodes and computed alignments as edges. For a set of representations it finds every combination of shortest alignment paths to a common target group (plus the unaligned variant) as MatchingPlans. AlignedRepresentation composes a plan into one matching and reorders a modality accordingly. The optimizers do not use the graph yet; the places where it would hook into the unimodal, multimodal and GA optimizers and into DAG execution are marked with comments. Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cover the source file metadata of the loaders (eager, chunked and JSON), the OCR loader with a mocked Tesseract, PairedModality (validation, shared fitted vocabulary, allowed operations, data distribution), the negative sampling cap of contrastive learning and disabling padding in UnimodalModality.apply_representation. Assisted-by: AI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Changes
apply_aggregated_representation(modality, aggregated_representation)for operation_allowlist to remain functionalTests were created for alignment graph, contrastive learning operator, paired modality and ocr loader
Assisted-by: AI