AI Models in RawCull

Review presets, model requirements, findings, saved evidence, decision controls and CLIP indexing in RawCull.

AI models in RawCull

Open Review from the toolbar to inspect a shortlist. Choose Selected or Tagged, select a preset, then click Review. The selected input must contain one to eight photos. If no grid items are explicitly selected, the focused visible photo can supply the input. Tagged input uses ratings of two or more in the active scope. To assess the top frames across the catalog’s ranked bursts, use Assess All Bursts on the burst list. Burst Groups

Choose a Review preset

PresetRequired modelWhat the run produces
Focus checkSAM 3Segments the generic subject prompt, registers available masks against the source and measures detail within usable foreground. CLIP can add relevance to the review criteria when available. This preset runs without Qwen.
DescribeQwen3-VLOne whole-photo overview per image. The run finishes after the overview, so expect no region crops or masked measurements.
FullQwen3-VLStarts with the overview, uses its concepts for SAM 3 when available, measures registered subjects and inspects crops within the depth budget. Reconciliation and report stages preserve evidence, omissions and conflicts. Multiple images also schedule a selection comparison. Missing optional models limit what the report can establish.

Describe and Full require at least 16 GB of unified memory. Below 32 GB the app displays a memory advisory. Review starts with Full on eligible machines and switches to Focus check when Qwen presets are disabled for memory. Enter nonblank criteria of at most 512 UTF-8 bytes. Review checks that the chosen preview or RAW-detail source works across the selection. Model availability is checked for the chosen preset when the run starts. ReviewRunContract · CombinedReviewFeature · CombinedReviewLiveBackend

Select Full, then click Review to start. For the call path and model inputs, see Full Review execution.

Read a result

The photo stays in place as you inspect the findings. During a run, the card on the photo shows the current step and progress. Select a finding to see its crop and highlight its region when region evidence exists. Region details shows the subject, crop geometry and provenance. The up and down arrows move between findings and Escape goes back one level. The layer controls below the photo show regions, subject masks and crop geometry.

Open Coverage & limits to see what the run could establish. For example, a mask touching the image edge may represent only part of a subject. A head-shaped region alone cannot establish eye sharpness. A crop omitted because the depth budget ran out has no crop observation. If synthesis fails, read the surviving observations as individual findings. The separate Review Record window follows the selected result and also exposes the technical record, JSON copy action and task history. CombinedReviewView · CombinedReviewInspectorPane · CombinedReviewRecordWindow · CombinedReviewLimitDigest

Follow a finding back to its pixels

A Full run records whether it used an embedded camera preview, a developed RAW or an ordinary raster. The overview is bounded to 2048 pixels on the long side by default. Review records the dimensions and orientation of the source used to cut a crop. It keeps the requested, padded, source and encoder-retained rectangles separately. Inspect exact crop can open the retained input when available. This matters on a small subject near the frame edge, where a source region, the visible foreground and the pixels supplied to the encoder can cover different areas. ReviewImageSource · CombinedReviewInspectorPane

For masked detail, Review loads the technical render, checks alignment against the appearance render, and requires the mask dimensions to match. A valid camera AF point can add evidence about the focus location. If alignment fails or the foreground is unusable, read the resulting limitation before interpreting a focus claim. The detail value depends on the render, with no calibrated sharp/blur threshold. A high CLIP relevance score describes a match to the criteria and cannot qualify an eye as sharp. CombinedReviewExecution

Apply a decision

Reading or reopening a result leaves culling decisions untouched. Tag sets two stars. Untag removes a two-star record. A photo with three to five stars shows a disabled Tagged button so using it cannot erase those stars. Use the rating controls to change them. Mark Reviewed applies to the burst containing the photo and appears when the photo maps to exactly one burst in the active scope.

The decision bar resolves the saved photo against the open, editable catalog and checks its on-disk fingerprint at the time of the action. Scanning, pending shutdown, an unavailable ratings store, duplicate filenames or a changed file can prevent an edit. Ratings use filenames as keys, so duplicate names make the target ambiguous. ReviewDecisionActions · CombinedReviewDecisionBar

Rating keys

With the result active, X rejects, P or 0 marks a keeper, 1 or 2 assigns two stars, 3 or T assigns three, and 4 or 5 assigns the corresponding stars. A text field or other control that owns the keystroke keeps it. The action targets the displayed result after the same live-file checks as the buttons. ImageReviewPolicies · CombinedReviewView

Where the subject outline comes from

Focus check and Full can supply the thumbnail mask badge and the S outline in loupe, zoom and the burst workspace. For the last displayed result matching the standardized photo URL, RawCull prefers an available primary-candidate mask with a retained input key, then the highest-confidence usable mask. Loading the image checks the file fingerprint again. Clearing retained inputs can leave a readable report with no drawable mask. Describe supplies no subject masks. ReviewSubjectMasks · ImageReviewSubjectOutlineLoader

Saved runs and repeatability

The snapshot freezes the preset, files, source preference, criteria, depth, model identities, stage versions and retention choices. The manifest tracks work and dependencies. Focus check starts with source and identity work, Describe with source and overview, and Full adds report work and, for a selection, comparison. Discovered subjects and crop regions add work as the run progresses.

An interrupted run can retain completed evidence. Resume revalidates the saved source fingerprints, model snapshots, pipeline contract and stored artifacts. A historical run without a preset decodes as Full and uses the earlier Full compatibility keys. After relaunch, RawCull restores the latest manifest and task history. The photo picker draws from results held in memory. Resume reconstructs results for a compatible run and reuses valid stage artifacts. If the original photo has changed, the saved task history remains available. When there is no displayed photo result, open Run history & diagnostics in the Review workspace. Clear retained inputs removes stored images. Clear rejected responses removes optional response diagnostics. CombinedReviewFeature+Manifest · CombinedReviewExecution · ReviewRunContract

When resuming, the store checks the stage’s compatibility and that any mask inputs referenced by a segmentation artifact still exist. Evicting a referenced mask makes that stage ineligible for reuse. The historical report can still explain what the earlier run observed. ReviewArtifactStore · ReviewRunContractTests

How CLIP Works in RawCull

CLIP places images and text in a shared vector space. RawCull uses that property in three ways: image-to-image distance, text-to-image semantic search, and a small closed-set subject-label pass that helps choose SAM prompts.

Provider construction and identity

PhotoAIKit’s CoreAICLIPProvider is an actor implementing image embedding, artifact generation/comparison, text embedding, and image/text comparison. During initialization it:

  1. validates the supplied model bundle;
  2. derives a ModelIdentity and asset fingerprint;
  3. decodes model-specific preprocessing, tokenizer, function-name, normalization, and configuration metadata; and
  4. exposes a SimilarityBackendDescriptor containing all compatibility-critical versions.

The descriptor is effectively the type identity of an embedding on disk. It records backend, model fingerprint, representation, preprocessing, normalization, and configuration versions. Image artifacts additionally record vector dimensions, schema version, and a source fingerprint. Consequently, RawCull does not compare a DataComp vector with an OpenAI vector, reuse an artifact after preprocessing changes, or silently treat an edited source file as unchanged.

Image preprocessing and inference

RawCullSimilarityImageDecoder first asks RawParserKitImageLoader for a bounded thumbnail. If that fails it attempts an ImageIO thumbnail without requesting a full fallback decode. The resulting CGImage is passed through the model-specific preprocessing declared by the CLIP bundle. Current metadata supports either the legacy stretch/bilinear path or shortest-side resize plus square center crop with bicubic interpolation and configured RGB mean/standard deviation.

The provider lazily loads Core AI functions and tokenizer resources. The image function receives the prepared image tensor and, if required by the exported graph, dummy text inputs. Its output is flattened, checked against the expected dimension, wrapped in an ImageEmbedding, JSON-encoded, and stored in a SimilarityArtifact. The backend descriptor records the bundle’s declared normalization version; image/text comparison later verifies that the image vector actually has approximately unit magnitude.

Indexing and recovery

RawCullCLIPSimilarityService uses PhotoAIKit’s bounded SimilarityArtifactIndexer with concurrency limit 1. CLIP inference is kept serial because the provider is actor-owned and model execution is resource intensive. There is no per-file or whole-batch Vision substitution during a CLIP pass.

For a non-finite vector, RawCullRecoveringCLIPArtifactProvider performs a targeted sequence:

  1. reject the invalid output;
  2. retry once with the already-loaded provider;
  3. construct a fresh provider from the same validated model location;
  4. verify that the replacement descriptor is exactly the same; and
  5. retry once with the replacement.

Successful CLIP artifacts from other files are retained. A file that still fails is reported and remains unindexed; it is not given a Vision artifact that would make the batch heterogeneous. Decode failures and inference failures are recorded separately for diagnostics.

Image similarity and burst grouping

For compatible normalized image embeddings, PhotoAIKit returns cosine distance. SimilarityScoringModel owns the artifact dictionary and computes distances from an anchor. It can apply a small RawCull-owned subject-label mismatch penalty, then uses those distances as input to ranking and burst grouping.

This responsibility split is deliberate:

  • CLIP defines the vector and mathematical comparison;
  • PhotoAIKit defines artifact compatibility and indexing mechanics; and
  • RawCull defines catalog admission, grouping thresholds, ordering, progress, persistence, and culling policy.

Vision remains the runtime fallback when CLIP is disabled or cannot be validated. Vision and CLIP artifacts are both descriptor-bearing, so switching backends causes incompatible state to be rejected or rehydrated rather than misinterpreted.

Semantic search never indexes missing images as a side effect. It operates only on already-persisted, descriptor-compatible CLIP image artifacts:

flowchart LR
    Query["Text query"] --> Tokens["CLIP tokenizer"]
    Tokens --> TextModel["CLIP text function"]
    TextModel --> TextVector["Validated normalized text vector"]
    Images["Compatible cached image artifacts"] --> Compare["Dot product / cosine similarity"]
    TextVector --> Compare
    Compare --> Sort["Descending score with deterministic tie breaks"]

RawCullCLIPSemanticSearchService trims and validates the query, filters image artifacts by the complete backend descriptor, generates one transient text embedding, and scores each compatible image. Because both vectors are normalized, their dot product is cosine similarity. Valid scores lie in -1...1; they are relative ranking values, not confidence percentages.

Sorting is deterministic: score descending, then original catalog order, localized filename, and UUID. Individual malformed artifacts become per-file failures rather than aborting every valid result. Text embeddings are scoped to one search and are not persisted.

Earlier model evaluations

The September puffin tests exercised the former Objects workflow. All 16 runs produced the expected board IDs, yet visual inspection found swapped bird descriptions and a wrong bird count. Those observations explain why a valid structured response still needs photographic review. The archived guide preserves the fixtures, timings and evidence limits for that workflow. September evaluation


Last modified November 24, 2026: update (c1748b4)