rohanrao619 / Social_Distancing_with_AI

Monitor people violating Social Distancing or not wearing Face Masks in public through CCTV footage.
MIT License
61 stars 42 forks source link

HTTPError: HTTP Error 308: Permanent Redirect #6

Closed nikhilgubbi closed 3 years ago

nikhilgubbi commented 3 years ago

Downloading: "http://folk.ntnu.no/haakohu/WIDERFace_DSFD_RES152.pth" to /root/.cache/torch/hub/checkpoints/WIDERFace_DSFD_RES152.pth

HTTPError Traceback (most recent call last)

in () 2 # Confidence Threshold can be Adjusted, Greater values would Detect only Clear Faces 3 ----> 4 detector = face_detection.build_detector("DSFDDetector", confidence_threshold=.10, nms_iou_threshold=.3) 10 frames /usr/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs) 647 class HTTPDefaultErrorHandler(BaseHandler): 648 def http_error_default(self, req, fp, code, msg, hdrs): --> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp) 650 651 class HTTPRedirectHandler(BaseHandler): HTTPError: HTTP Error 308: Permanent Redirect It showing an error while running the, detector = face_detection.build_detector("DSFDDetector", confidence_threshold=.5, nms_iou_threshold=.3) cell in google colab
rohanrao619 commented 3 years ago

Try installing the library with this: pip install git+https://github.com/hukkelas/DSFD-Pytorch-Inference.git Let me know if it worked!

nikhilgubbi commented 3 years ago

No again its giving the same result..

On Wed, May 5, 2021 at 4:10 PM Saini Rohan Rao @.***> wrote:

Try installing the library with this: pip install git+https://github.com/hukkelas/DSFD-Pytorch-Inference.git Let me know if it worked!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rohanrao619/Social_Distancing_with_AI/issues/6#issuecomment-832589297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKTUNJDEHEVP6N23L3RNWZDTMEOBRANCNFSM44AQLLPA .

rohanrao619 commented 3 years ago

Try again now. I've checked, it works. Let me know if still doesn't work, I'll tell you another way around. Make sure you install in a New Session on Colab. If you're running on a local system, first uninstall and then reinstall directly from the GitHub repo I mentioned earlier.

zeeshanfarooqi commented 3 years ago

hi, i am using colab and i have tried the option which you have suggested but it is not working.

Prajwal-P commented 3 years ago

Hi @nikhilgubbi and @zeeshanfarooqi, I was also getting the same error and I'm using google colab like you guys. The error was not in this repo, It was in face_detection package, now it's resolved. Please follow this link, it might help to solve it. It's same as this comment.

rohanrao619 commented 3 years ago

@Prajwal-P You're right. Apparently, it was an HTTPS error that has already been fixed in the master branch of face_detection Repo. @nikhilgubbi and @zeeshanfarooqi So installing with this works: pip install git+https://github.com/hukkelas/DSFD-Pytorch-Inference.git (I tried it myself). If it still doesn't work, then you can manually change it in the repo cloned with pip to get it working.

NikethanPoojary commented 3 years ago

@rohanrao619 ..we are experiencing the same problem, DSFD detector giving https error. Please try to resolve.