Advertisement
kopyl

Untitled

Jun 14th, 2023
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ValueError Traceback (most recent call last)
  3. Cell In[27], line 7
  4. 4 dets = face_detection(img)
  5. 6 # to decode later the detections
  6. ----> 7 dets = [FaceDetectorResult(o) for o in dets]
  7.  
  8. Cell In[27], line 7, in <listcomp>(.0)
  9. 4 dets = face_detection(img)
  10. 6 # to decode later the detections
  11. ----> 7 dets = [FaceDetectorResult(o) for o in dets]
  12.  
  13. File /usr/local/lib/python3.10/dist-packages/kornia/contrib/face_detection.py:40, in FaceDetectorResult.__init__(self, data)
  14. 38 def __init__(self, data: torch.Tensor) -> None:
  15. 39 if len(data) < 15:
  16. ---> 40 raise ValueError(f"Result must comes as vector of size(14). Got: {data.shape}.")
  17. 41 self._data = data
  18.  
  19. ValueError: Result must comes as vector of size(14). Got: torch.Size([1, 15]).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement