Repository navigation
Add PLIP, iSyntax reader, faster TIFF thumbnails, and converter/device fixes - #247
Merged
Merged
Conversation
PER-540 Add an optional pyisyntax backend and register native .isyntax slides for automatic discovery, explicit reader selection, and the CLI. Use pyisyntax >=0.1.7 for correct WSI MPP metadata, convert level-0 locations to backend pyramid coordinates, and preserve thumbnail aspect ratio.
PER-540 Keep the existing converter extension set when adding native iSyntax discovery, preserving CZI, BIF, and SVSLIDE defaults.
torch.autocast needs a device type; derive it with torch.device(device).type
instead of device.split(':'), which fails for torch.device objects.
Co-authored-by: GabrielCabas <38341255+GabrielCabas@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pyvips defaults to Q=75, which adds visible compression artifacts to converted slides. Co-authored-by: titionex <136621123+titionex@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Loads only the vision tower of vinid/plip. As for CONCH v1, the default output is the pooled embedding before the contrastive projection (768-dim); with_proj=True returns the projected embedding (512-dim). Preprocessing and both outputs match the Hugging Face CLIPProcessor and CLIPModel exactly. Based on #228 and #231. Co-authored-by: dibalokechanda <135063772+dibalokechanda@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests replace pyisyntax with a fake backend, so they run in CI: extension detection, metadata, level-0 to level coordinate conversion, thumbnails, pickling and release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 2026
Closed
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.
Combines five community PRs into one, aligned with the rest of the codebase. Contributor commits are cherry-picked with their authorship. Where a PR could not be applied as is, it is credited with
Co-authored-by.--reader_type isyntax,.[isyntax]extra)devicecan be atorch.deviceas well as a stringmain(the PR fixed 1)C-RADIOv2 and CLIP-RN50 from #231 are not included.
PLIP
Changes from #231, to match the other encoders:
with_proj=False).with_proj=Truereturns the projected embedding (512-dim).normalizeis handled by the encoder itself.get_constants('openai_clip')instead of being hard-coded.--patch_size 224, PLIP's native input size. PLIP declares no license on Hugging Face or GitHub, so the License column shows "—".Other alignment
docs/index.rst.docs/faq.rstand the Claude skill files. Add native Philips iSyntax WSI reader #241 did not cover these.Verification
CLIPProcessorandCLIPModelon real weights: preprocessing, default output andwith_projoutput all match exactly (max diff 0.0). Local-folder loading gives the same output. Integration test passes.tests/test_isyntax_reader.pyuses a fake backend, so it runs in CI. It covers extension detection, MPP and magnification, level-0 to level coordinates, RGBA to RGB, thumbnail aspect ratio, pickling and release. Not tested on real.isyntaxslides here (the Add native Philips iSyntax WSI reader #241 author tested three).Note
#245 (METTLE 1.5) also bumps the encoder count to 34. Whichever of the two merges second needs 35.
Closes #149
Closes #152
🤖 Generated with Claude Code