Spaces:
Sleeping
Sleeping
Commit ·
97d283b
1
Parent(s): 18b5c8e
fix readme.md
Browse filesFiles changed (2)
- Dockerfile+2-2
- faceDetect.py+2-1
13 unmodified lines141516171819202113 unmodified linesWORKDIR /appCOPY --chown=user requirements.txt .RUN --mount=type=cache,target=/root/.cache \pip install --no-cache-dir -r requirements.txtCOPY --chown=user . .13 unmodified lines141516171819202113 unmodified linesWORKDIR /appCOPY --chown=user requirements.txt .RUN pip install --no-cache-dir --upgrade pip \&& pip install --no-cache-dir -r requirements.txtCOPY --chown=user . .
123456# from ultralytics import YOLO# modelYolo_path = "weights/yolov8n-face.pt"# faceDetector = YOLO(modelYolo_path)from ultralytics.nn.tasks import DetectionModelfrom torch.serialization import safe_globals1234567from ultralytics import YOLO# modelYolo_path = "weights/yolov8n-face.pt"# faceDetector = YOLO(modelYolo_path)from ultralytics.nn.tasks import DetectionModelfrom torch.serialization import safe_globals
Dockerfile+2-2
faceDetect.py+2-1