fixed websocket image piepline
This commit is contained in:
@@ -115,8 +115,6 @@ async def predict_face(websocket: WebSocket):
|
|||||||
scale_w = W / IMAGE_SIZE_YOLO
|
scale_w = W / IMAGE_SIZE_YOLO
|
||||||
scale_h = H / IMAGE_SIZE_YOLO
|
scale_h = H / IMAGE_SIZE_YOLO
|
||||||
|
|
||||||
image = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
|
||||||
|
|
||||||
image = transform_face(image).unsqueeze(0).to(device)
|
image = transform_face(image).unsqueeze(0).to(device)
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
pred = modeL_face(image)
|
pred = modeL_face(image)
|
||||||
|
|||||||
Reference in New Issue
Block a user