Repository navigation
feat: add BEPH patch encoder - #232
Open
dibalokechanda wants to merge 1 commit into
Open
dibalokechanda wants to merge 1 commit into
dibalokechanda wants to merge 1 commit into
Conversation
Author
|
Hi @guillaumejaume just a soft ping on this PR: It looks like the CI workflow expired while waiting for maintainer approval, so the tests were never able to run. Whenever you have a chance, would you mind approving/retriggering the workflow? The same failure happened for the other Patch Encoder PRs I made. |
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
Adds BEPH as a TRIDENT patch encoder.
Changes
BEPHInferenceEncoder--patch_encoder bephlocal_ckpts.jsontimmBEiT parameter layout at load timeCheckpoint download
Unlike several Hugging Face-hosted encoders, BEPH's official pretrained backbone is distributed separately by the authors. Users therefore need to download
BEPH_backbone.pthfrom the official BEPH repository and provide its path either throughweights_pathor TRIDENT'slocal_ckpts.json.For example:
The repository keeps this entry empty by default:
so no machine-specific checkpoint path is committed.
Result:
Verified output shape:
Reference
BEPH: A foundation model for generalizable cancer diagnosis and survival prediction from histopathological images, Nature Communications, 2025.
Official implementation/checkpoint:
Zhcyoung/BEPH