Download data/segment_anything/__init__.py from introvoyz043/MedSegX-code: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/datasets/introvoyz043/MedSegX-code/resolve/main/data/segment_anything/__init__.py
- Command line
-
hf download hf://datasets/introvoyz043/MedSegX-code/data/segment_anything/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/introvoyz043/MedSegX-code/resolve/main/data/segment_anything/__init__.py
605 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| from .build_sam import ( | |
| build_sam, | |
| build_sam_vit_h, | |
| build_sam_vit_l, | |
| build_sam_vit_b, | |
| sam_model_registry, | |
| ) | |
| from .predictor import SamPredictor | |
| from .automatic_mask_generator import SamAutomaticMaskGenerator | |
| sam_model_checkpoint = { | |
| "default": "sam_vit_h_4b8939.pth", | |
| "vit_h": "sam_vit_h_4b8939.pth", | |
| "vit_l": "sam_vit_l_0b3195.pth", | |
| "vit_b": "sam_vit_b_01ec64.pth", | |
| } | |