Instructions to use MRiabov/WireSegHR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MRiabov/WireSegHR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="MRiabov/WireSegHR")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MRiabov/WireSegHR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download scripts/pull_ttpla.sh from MRiabov/WireSegHR: direct link, hf CLI and curl.
- Browser
- Download file 678 Bytes
-
https://huggingface.co/MRiabov/WireSegHR/resolve/refs%2Fpr%2F1/scripts/pull_ttpla.sh
- Command line
-
hf download hf://MRiabov/WireSegHR@refs/pr/1/scripts/pull_ttpla.sh
-
curl -L -o pull_ttpla.sh https://huggingface.co/MRiabov/WireSegHR/resolve/refs%2Fpr%2F1/scripts/pull_ttpla.sh
678 Bytes
| set -euo pipefail | |
| # Download TTPLA zip and extract | |
| # Usage: | |
| # scripts/pull_ttpla.sh [FILE_ID_OR_URL] [ZIP_NAME] [OUT_DIR] | |
| # Defaults replicate the manual commands you ran. | |
| FILE_ID_OR_URL="${1:-1Yz59yXCiPKS0_X4K3x9mW22NLnxjvrr0}" | |
| ZIP_NAME="${2:-data_original_size_v1.zip}" | |
| OUT_DIR="${3:-dataset/ttpla_dataset}" | |
| # Work inside dataset/ like you did manually | |
| mkdir -p dataset | |
| cd dataset | |
| echo "Downloading TTPLA: ${FILE_ID_OR_URL} -> ${ZIP_NAME}" | |
| gdown "${FILE_ID_OR_URL}" -O "${ZIP_NAME}" --fuzzy | |
| echo "Unzipping ${ZIP_NAME} -> ${OUT_DIR}" | |
| mkdir -p "${OUT_DIR}" | |
| unzip -q -o "${ZIP_NAME}" -d "${OUT_DIR}" | |
| echo "Done. Contents extracted under: ${OUT_DIR}" | |