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 scripts/model_check.py from Aditya2162/ivus-segmentation: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/Aditya2162/ivus-segmentation/resolve/main/scripts/model_check.py
- Command line
-
hf download hf://Aditya2162/ivus-segmentation/scripts/model_check.py
-
curl -L -o model_check.py https://huggingface.co/Aditya2162/ivus-segmentation/resolve/main/scripts/model_check.py
282 Bytes
| import tensorflow as tf | |
| m = tf.saved_model.load("./model") | |
| print("Has call:", callable(m)) | |
| print("Num variables:", len(getattr(m, "variables", []))) | |
| print("Num trainable:", len(getattr(m, "trainable_variables", []))) | |
| print("Signatures:", list(getattr(m, "signatures", {}).keys())) | |