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")# Load model directly from transformers import YOLOv8 model = YOLOv8.from_pretrained("Domeandreimno/yolov8-segmentation", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| # 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"] | |