-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace wsinfer_mil with spinpath * rename wsinfer_mil directory to spinpath * rename to spinpath * rename to spinpath * update copyright year * rename to spinpath * rm files related to zoo
- Loading branch information
Showing
42 changed files
with
111 additions
and
299 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""SpinPath is a toolkit for specimen-level inference on whole slide images.""" | ||
|
||
from __future__ import annotations | ||
|
||
try: | ||
from ._version import __version__ | ||
except ImportError: | ||
__version__ = "0.0.unknown" | ||
|
||
from spinpath.client.hfmodel import load_torchscript_model_from_hf | ||
from spinpath.client.localmodel import load_torchscript_model_from_filesystem | ||
from spinpath.inference import infer_one_slide | ||
|
||
__all__ = [ | ||
"infer_one_slide", | ||
"load_torchscript_model_from_filesystem", | ||
"load_torchscript_model_from_hf", | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from wsinfer_mil.cli import cli | ||
from spinpath.cli import cli | ||
|
||
if __name__ == "__main__": | ||
cli() |
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
|
||
from platformdirs import user_cache_dir | ||
|
||
# Where we keep all files related to SpinPath. | ||
SPINPATH_DIR = Path(user_cache_dir(appname="spinpath")) | ||
|
||
# Cache for feature embeddings. | ||
SPINPATH_CACHE_DIR = SPINPATH_DIR / "cache" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Errors for SpinPath.""" | ||
|
||
from __future__ import annotations | ||
|
||
|
||
class SpinPathException(Exception): | ||
"""Base exception for SpinPath.""" | ||
|
||
|
||
class InvalidModelConfiguration(SpinPathException): | ||
"""Invalid model configuration.""" | ||
|
||
|
||
class InvalidRegistryConfiguration(SpinPathException): | ||
"""Invalid model zoo registry configuration.""" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.