Instructions to use Domeandreimno/yolov8-segmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Domeandreimno/yolov8-segmentation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="Domeandreimno/yolov8-segmentation")# pip install -U transformers accelerate # Load model directly from transformers import YOLOv8 model = YOLOv8.from_pretrained("Domeandreimno/yolov8-segmentation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download Dockerfile from Domeandreimno/yolov8-segmentation: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/Domeandreimno/yolov8-segmentation/resolve/main/Dockerfile
- Command line
-
hf download hf://Domeandreimno/yolov8-segmentation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/Domeandreimno/yolov8-segmentation/resolve/main/Dockerfile
409 Bytes
| # Usa l'immagine base ufficiale di Python | |
| FROM python:3.8-slim | |
| # Installa le dipendenze | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Copia i pesi del modello | |
| COPY best.pt /app/best.pt | |
| # Copia lo script di inferenza | |
| COPY app.py /app/app.py | |
| # Imposta la directory di lavoro | |
| WORKDIR /app | |
| # Comando per eseguire lo script di inferenza | |
| CMD ["python", "app.py"] | |