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