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
File size: 409 Bytes
5977409 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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"]
|