Change model weights location

This commit is contained in:
Piotr Szkudlarek 2024-01-08 14:05:02 +01:00
parent bb037a4f68
commit 42469f3572

View File

@ -5,7 +5,7 @@ from io import BytesIO
from django.conf import settings from django.conf import settings
from ultralytics import YOLO from ultralytics import YOLO
MODEL = YOLO("best.pt") MODEL = YOLO("../best.pt")
def predict_image(image): def predict_image(image):