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")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MRiabov/WireSegHR", dtype="auto") - Notebooks
- Google Colab
- Kaggle
(debug) import yaml
Browse files
infer.py
CHANGED
|
@@ -10,6 +10,7 @@ import torch.nn.functional as F
|
|
| 10 |
from torch.amp import autocast
|
| 11 |
from tqdm import tqdm
|
| 12 |
from safetensors.torch import load_file as safe_load_file
|
|
|
|
| 13 |
|
| 14 |
from src.wireseghr.model import WireSegHR
|
| 15 |
from pathlib import Path
|
|
|
|
| 10 |
from torch.amp import autocast
|
| 11 |
from tqdm import tqdm
|
| 12 |
from safetensors.torch import load_file as safe_load_file
|
| 13 |
+
import yaml
|
| 14 |
|
| 15 |
from src.wireseghr.model import WireSegHR
|
| 16 |
from pathlib import Path
|