Skip to content

Commit eb0c5ee

Browse files
committed
Bump version to 1.4.0
1 parent d25de46 commit eb0c5ee

6 files changed

Lines changed: 21 additions & 17 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ warn_unused_configs = true
2323
no_implicit_reexport = true
2424

2525
[tool.bumpver]
26-
current_version = "1.3.0"
26+
current_version = "1.4.0"
2727
version_pattern = "MAJOR.MINOR.PATCH"
2828
commit = false # We do version bumping in CI, not as a commit
2929
tag = false # Git tag already exists — we don't auto-tag

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = slide2vec
3-
version = 1.3.0
3+
version = 1.4.0
44
description = Embedding of whole slide images with Foundation Models
55
author = Clément Grisi
66
platforms = unix, linux, osx, cygwin, win32

slide2vec/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.3.0"
1+
__version__ = "1.4.0"

slide2vec/configs/conch.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
csv: # path to csv containing slide paths
1+
csv: "/data/temporary/clement/notebooks/discern/prostate-bladder-breast-debug.csv" # path to csv containing slide paths
22

33
output_dir: "output" # output directory
44

@@ -15,4 +15,11 @@ model:
1515
batch_size: 1
1616

1717
speed:
18-
fp16: true # use mixed precision during model inference
18+
fp16: true # use mixed precision during model inference
19+
20+
wandb:
21+
enable: true
22+
project: "discern"
23+
username: "clemsg"
24+
exp_name: "features"
25+
tags: ["features", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]

slide2vec/configs/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ model:
4141
mode: "cls" # embedding mode ["cls", "full"]
4242
arch: # architecture of custom model
4343
pretrained_weights: # path to the pretrained weights when using a custom model
44-
batch_size: 1
44+
batch_size: 256
4545
tile_size: ${tiling.params.tile_size}
4646
patch_size: 256 # if level is "region", size used to unroll the region into patches
4747
save_tile_embeddings: false # whether to save tile embeddings alongside the pooled slide embedding when level is "slide"

slide2vec/configs/virchow2.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
# csv: "/data/temporary/clement/dataset/tcga-prad/mutations/tcga-prad-tp53-slide2vec.csv"
22
# csv: "/data/temporary/clement/dataset/tcga-blca/mutations/tcga-blca-tp53-slide2vec.csv"
33
# csv: "/data/temporary/clement/dataset/tcga-brca/mutations/tcga-brca-tp53-slide2vec.csv"
4-
csv: "/data/temporary/clement/leopard/csvs/dev-slide2vec.csv"
4+
csv: "/data/temporary/clement/leopard/csvs/brazil-slide2vec-august-2025-revision.csv"
55

6-
output_dir: "output"
6+
output_dir: "/data/temporary/clement/code/slide2vec/output"
77

88
visualize: true
99

1010
tiling:
1111
# read_coordinates_from: "/data/temporary/clement/code/slide2vec/output/vjh3hrr6/coordinates"
1212
params:
1313
spacing: 0.5 # spacing at which to tile the slide, in microns per pixel
14-
# tolerance: 0.07 # tolerance for matching the spacing (float between 0 and 1, deciding how much the spacing can deviate from the one specified in the slide metadata)
1514
tolerance: 0.05 # tolerance for matching the spacing (float between 0 and 1, deciding how much the spacing can deviate from the one specified in the slide metadata)
1615
tile_size: 2048 # size of the tiles to extract, in pixels
17-
# min_tissue_percentage: 0.1 # threshold used to filter out tiles that have less tissue than this value (percentage)
18-
min_tissue_percentage: 0.01 # threshold used to filter out tiles that have less tissue than this value (percentage)
16+
min_tissue_percentage: 0.1 # threshold used to filter out tiles that have less tissue than this value (percentage)
1917
filter_params:
20-
# ref_tile_size: 224
21-
ref_tile_size: 16
18+
ref_tile_size: 256
2219

2320
model:
2421
level: "region"
@@ -29,10 +26,10 @@ speed:
2926
fp16: true
3027

3128
wandb:
32-
enable: false
33-
project: "mut-pred"
29+
enable: true
30+
project: "leopard"
3431
username: "clemsg"
3532
exp_name: "features"
36-
tags: ["features", "tcga-prad", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]
33+
tags: ["features", "brazil", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]
3734
# tags: ["features", "tcga-blca", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]
38-
# tags: ["features", "tcga-brca", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]
35+
# tags: ["features", "tcga-brca", "${model.name}", "${model.level}", "${tiling.params.tile_size}"]

0 commit comments

Comments
 (0)