hukkelas / DSFD-Pytorch-Inference

A High-Performance Pytorch Implementation of face detection models, including RetinaFace and DSFD
Apache License 2.0
218 stars 58 forks source link

Receiving HTTP 308 error while creating detector #21

Closed Prajwal-P closed 3 years ago

Prajwal-P commented 3 years ago

Hi, I'm trying to create a detector using the same code as mentioned in readme. I'm trying to do this in google colab but I'm receiving a HTTP 308 and not able to find out why is that. Can any one help me with this please?

My code:

import face_detection
print(face_detection.available_detectors) # This is working fine
detector = face_detection.build_detector("DSFDDetector", confidence_threshold=.5, nms_iou_threshold=.3) # throws HTTP 308 error

Screenshot of error I'm getting: image

hukkelas commented 3 years ago

This is fixed in master. Try to reinstall with: pip install git+https://github.com/hukkelas/DSFD-Pytorch-Inference.git