Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ warn_unused_configs = true
no_implicit_reexport = true

[tool.bumpver]
current_version = "2.0.1"
current_version = "2.0.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit = false # We do version bumping in CI, not as a commit
tag = false # Git tag already exists — we don't auto-tag
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = slide2vec
version = 2.0.1
version = 2.0.2
description = Embedding of whole slide images with Foundation Models
author = Clément Grisi
platforms = unix, linux, osx, cygwin, win32
Expand Down
2 changes: 1 addition & 1 deletion slide2vec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.1"
__version__ = "2.0.2"

import sys
import os
Expand Down
29 changes: 21 additions & 8 deletions slide2vec/configs/pathojepa.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,40 @@
csv: ""
# csv: "/data/pathology/projects/clement/leopard/csvs/dev-slide2vec.csv"
# csv: "/data/pathology/projects/clement/leopard/csvs/tcga/tcga-slide2vec.csv"
# csv: "/data/pathology/projects/clement/leopard/csvs/test-slide2vec.csv"
# csv: "/data/pathology/projects/clement/leopard/csvs/cologne-slide2vec.csv"
csv: "/data/pathology/projects/clement/leopard/csvs/brazil-slide2vec-august-2025-revision.csv"

visualize: true

output_dir: "output" # output directory
output_dir: "/data/pathology/projects/clement/discern/pathojepa/slide2vec"
visualize: false

tiling:
params:
spacing: 0.5 # spacing at which to tile the slide, in microns per pixel
tolerance: 0.05 # tolerance for matching the spacing (float between 0 and 1)
tile_size: 224 # PathoJEPA inference target tile size
tile_size: 2048 # PathoJEPA inference target tile size
min_tissue_percentage: 0.1 # threshold used to filter out tiles with too little tissue
seg_params:
downsample: 64
filter_params:
ref_tile_size: 224
ref_tile_size: 256

model:
level: "tile" # set to "region" to run region-level inference with this tile encoder
level: "region" # set to "region" to run region-level inference with this tile encoder
name: "pathojepa"
arch: "vit_small"
pretrained_weights: "/path/to/pathojepa/checkpoint.pth.tar"
pretrained_weights: "/data/pathology/projects/clement/discern/pathojepa/runs/dmky8lh7/jepa-pathorob-latest.pth.tar"
input_size: 224
patch_size: 256 # region-unrolling size when model.level == "region"
token_size: 16 # ViT patch size used by PathoJEPA
normalize_embeddings: false
batch_size: 1

speed:
fp16: false

wandb:
enable: true
project: "leopard"
username: "clemsg"
exp_name: "features"
tags: ["features", "dev", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]
Loading