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 output/multitask_test_inference.json from Aditya2162/ivus-segmentation: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/Aditya2162/ivus-segmentation/resolve/main/output/multitask_test_inference.json
- Command line
-
hf download hf://Aditya2162/ivus-segmentation/output/multitask_test_inference.json
-
curl -L -o multitask_test_inference.json https://huggingface.co/Aditya2162/ivus-segmentation/resolve/main/output/multitask_test_inference.json
1.12 kB
| { | |
| "base_model_dir": "models/multitask/lumen_multitask_base", | |
| "cls_head_path": "models/multitask/bifurcation_head.keras", | |
| "split_json": "evals/splits/ivus_split_merged_600.json", | |
| "num_test_samples": 90, | |
| "num_test_with_lumen": 48, | |
| "threshold_info": { | |
| "method": "validation_sweep", | |
| "metric": "cls_f1", | |
| "selected_threshold": 0.5199999999999999, | |
| "val_best": { | |
| "threshold": 0.5199999999999999, | |
| "cls_accuracy": 0.8888888888888888, | |
| "cls_precision": 0.8888888888888888, | |
| "cls_recall": 0.9491525423728814, | |
| "cls_f1": 0.9180327868852458, | |
| "cls_auc": 0.9111536741256714, | |
| "tp": 56, | |
| "fp": 7, | |
| "fn": 3, | |
| "tn": 24 | |
| } | |
| }, | |
| "segmentation_metrics": { | |
| "seg_count": 48, | |
| "seg_iou": 0.8519954307622618, | |
| "seg_dice": 0.920083728728844 | |
| }, | |
| "bifurcation_metrics": { | |
| "threshold": 0.5199999999999999, | |
| "cls_accuracy": 0.8555555555555555, | |
| "cls_precision": 0.9259259259259259, | |
| "cls_recall": 0.847457627118644, | |
| "cls_f1": 0.8849557522123893, | |
| "cls_auc": 0.9633679986000061, | |
| "tp": 50, | |
| "fp": 4, | |
| "fn": 9, | |
| "tn": 27 | |
| } | |
| } |