-
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.
Merge pull request #12 from bioimage-io/ray-sam
Run SAM computations with RAY
- Loading branch information
Showing
16 changed files
with
464 additions
and
451 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ data/ | |
.DS_Store | ||
*.onnx | ||
*.pt | ||
*.pth | ||
*tif | ||
*zip | ||
visualize_annotation.py |
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 |
---|---|---|
@@ -1,5 +1,42 @@ | ||
def main(): | ||
print("Welcome to the bioimageio-colab") | ||
import argparse | ||
import asyncio | ||
|
||
if __name__ == '__main__': | ||
main() | ||
from bioimageio_colab.register_sam_service import register_service | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser( | ||
description="Register SAM annotation service on BioImageIO Colab workspace." | ||
) | ||
parser.add_argument( | ||
"--server_url", | ||
default="https://hypha.aicell.io", | ||
help="URL of the Hypha server", | ||
) | ||
parser.add_argument( | ||
"--workspace_name", default="bioimageio-colab", help="Name of the workspace" | ||
) | ||
parser.add_argument( | ||
"--service_id", | ||
default="microsam", | ||
help="Service ID for registering the service", | ||
) | ||
parser.add_argument( | ||
"--token", | ||
default=None, | ||
help="Workspace token for connecting to the Hypha server", | ||
) | ||
parser.add_argument( | ||
"--cache_dir", | ||
default="./.model_cache", | ||
help="Directory for caching the models", | ||
) | ||
parser.add_argument( | ||
"--ray_address", | ||
default=None, | ||
help="Address of the Ray cluster for running SAM", | ||
) | ||
args = parser.parse_args() | ||
|
||
loop = asyncio.get_event_loop() | ||
loop.create_task(register_service(args=args)) | ||
loop.run_forever() |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.