acnazarejr / fdet

An easy to use face detection module based on MTCNN and RetinaFace algorithms.
MIT License
19 stars 4 forks source link

Mobilenet was not found at dropbox!? #12

Open bhralzz opened 3 years ago

bhralzz commented 3 years ago

testing below: import cv2 from fdet import io, RetinaFace BATCH_SIZE = 1000 detector = RetinaFace(backbone='MOBILENET', cuda_devices=[0,1,2,3]) vid_cap = cv2.VideoCapture('13.mp4') video_face_detections = [] # list to store all video face detections image_buffer = [] # buffer to store the batch

while True:

success, frame = vid_cap.read() # read the frame from video capture
if not success:
    break # end of video

frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # convert to RGB
image_buffer.append(frame) # add frame to buffer

if len(image_buffer) == BATCH_SIZE: # if buffer is full, detect the batch
    batch_detections = detector.batch_detect(image_buffer)
    video_face_detections.extend(batch_detections)
    image_buffer.clear() # clear the buffer

if image_buffer: # checks if images remain in the buffer and detect it batch_detections = detector.batch_detect(image_buffer) video_face_detections.extend(batch_detections)

generate the result:

Downloading: "https://www.dropbox.com/s/kr1xjmzry4l8p6g/retinaface_mobilenetv1_final.pt?dl=1" to C:\Users\DFMRendering/.cache\torch\checkpoints\retinaface_mobilenetv1_final.pt

raise HTTPError(req.full_url, code, msg, hdrs, fp)

HTTPError: Not Found

acnazarejr commented 3 years ago

Hi @bhralzz, I found the problem and I will fix it until tomorrow.

vasu-dev commented 3 years ago

@acnazarejr is this issue resloved? It still says file not found

cSchubes commented 3 years ago

@acnazarejr having the same issue, would really appreciate any help! :)

vineela008 commented 3 years ago

Hi @bhralzz, I found the problem and I will fix it until tomorrow.

@acnazarejr it's still showing the same error, please fix the issue!!

TanyaChutani commented 3 years ago

I am also facing the same issue, please fix this ASAP.

nileshchilka1 commented 3 years ago

It still says file not found at dropbox

w00dw0rm commented 2 years ago

Hi @acnazarejr , its still not able to find the file to download. Or alternatively could the model be put onto github? Appreciated.