Spaces:
Sleeping
Sleeping
Commit ·
18b5c8e
1
Parent(s): 5629622
fix readme.md
Browse files123from ultralytics import YOLOmodelYolo_path = "weights/yolov8n-face.pt"faceDetector = YOLO(modelYolo_path)12345678# from ultralytics import YOLO# modelYolo_path = "weights/yolov8n-face.pt"# faceDetector = YOLO(modelYolo_path)from ultralytics.nn.tasks import DetectionModelfrom torch.serialization import safe_globalswith safe_globals([DetectionModel]):faceDetector = YOLO(modelYolo_path)
faceDetect.py+8-3