可以成功动态更换yolo模型并重启服务生效

This commit is contained in:
2025-09-12 20:09:07 +08:00
parent 206652d6bb
commit 5ecbac0f9c
6 changed files with 16 additions and 22 deletions

View File

@ -1,12 +1,9 @@
import os
import numpy as np
import cv2
import gc
import time
import threading
from PIL import Image
from insightface.app import FaceAnalysis
# 假设service.face_service中get_all_face_name_with_eigenvalue可获取人脸数据
from service.face_service import get_all_face_name_with_eigenvalue
# GPU状态检查支持