Skip to content

Commit 58f1611

Browse files
committed
Updating project
1 parent 4ebbcba commit 58f1611

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ check_examples.sh
4444

4545
# Unnecessary files
4646
test_scripts
47+
json_to_geojson.ipynb

cellvit/utils/cache_models.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,15 @@ def cache_classifier(logger: Optional[logging.Logger] = None) -> Path:
8282
if zip_dir.exists():
8383
os.remove(zip_dir)
8484
return classifier_dir
85+
86+
87+
def main():
88+
"""Main function to cache models and classifier."""
89+
logger = PrintLogger()
90+
cache_cellvit_sam_h(logger)
91+
cache_cellvit_256(logger)
92+
cache_classifier(logger)
93+
94+
95+
if __name__ == "__main__":
96+
main()

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cellvit"
7-
version = "1.0.6"
7+
version = "1.0.8"
88
description = "CellViT Inference Pipeline for Whole Slide Images (WSI) in Memory"
99
authors = [
1010
{ name = "Fabian Hörst", email = "[email protected]" }
@@ -31,7 +31,7 @@ dependencies = [
3131
"numpy<2.0.0",
3232
"opencv-python-headless==4.7.0.72",
3333
"opt-einsum>=3.3.0",
34-
"pandas>=1.4.3,<2.0.0",
34+
"pandas",
3535
"pathopatch>=1.0.9",
3636
"pydantic>=1.10.16,<2.0",
3737
"pydicom==2.4.4",
@@ -58,3 +58,4 @@ License = "https://github.com/TIO-IKIM/CellViT-Inference/blob/main/LICENSE"
5858
cellvit-inference = "cellvit.detect_cells:main"
5959
cellvit-check = "cellvit.check_system:main"
6060
cellvit-download-examples = "cellvit.utils.cache_test_database:cache_test_database"
61+
cellvit-download-models = "cellvit.utils.cache_models:main"

0 commit comments

Comments
 (0)