Instructions to use Aditya2162/ivus-segmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Aditya2162/ivus-segmentation with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Aditya2162/ivus-segmentation") - Notebooks
- Google Colab
- Kaggle
Download deepivus/processing/__init__.py from Aditya2162/ivus-segmentation: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/Aditya2162/ivus-segmentation/resolve/main/deepivus/processing/__init__.py
- Command line
-
hf download hf://Aditya2162/ivus-segmentation/deepivus/processing/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Aditya2162/ivus-segmentation/resolve/main/deepivus/processing/__init__.py
697 Bytes
| """Processing subpackage: preprocessing and fusion helpers.""" | |
| from .fusion import ( | |
| build_sam_label_masks, | |
| empty_contours, | |
| fill_empty_lumen_contours_temporally, | |
| fill_empty_masks_temporally, | |
| merge_sam_with_tensorflow, | |
| propagate_previous_mask_on_zero_score, | |
| top_k_lumen_exemplar_indices, | |
| ) | |
| from .preprocessing import apply_center_black_circle, ensure_uint8 | |
| __all__ = [ | |
| "ensure_uint8", | |
| "apply_center_black_circle", | |
| "top_k_lumen_exemplar_indices", | |
| "build_sam_label_masks", | |
| "empty_contours", | |
| "merge_sam_with_tensorflow", | |
| "propagate_previous_mask_on_zero_score", | |
| "fill_empty_masks_temporally", | |
| "fill_empty_lumen_contours_temporally", | |
| ] | |