TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.72k stars 418 forks source link

super(type, obj): obj must be an instance or subtype of type #177

Closed umer006 closed 2 years ago

umer006 commented 2 years ago

im running the following code bounding_boxes, landmarks = detect_faces(img) and the following error is occurring

TypeError Traceback (most recent call last)

in ----> 1 bounding_boxes, landmarks = detect_faces(img) ~\Downloads\InsightFace_Pytorch-master\mtcnn_pytorch\src\detector.py in detect_faces(image, min_face_size, thresholds, nms_thresholds) 23 24 # LOAD MODELS ---> 25 pnet = PNet() 26 rnet = RNet() 27 onet = ONet() ~\Downloads\InsightFace_Pytorch-master\mtcnn_pytorch\src\get_nets.py in __init__(self) 29 def __init__(self): 30 ---> 31 super(PNet, self).__init__() 32 33 # suppose we have input with size HxW, then TypeError: super(type, obj): obj must be an instance or subtype of type