Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference time #6

Open
Kyeonga-Kim opened this issue Apr 2, 2024 · 0 comments
Open

Inference time #6

Kyeonga-Kim opened this issue Apr 2, 2024 · 0 comments

Comments

@Kyeonga-Kim
Copy link

Kyeonga-Kim commented Apr 2, 2024

Hi, I've been following your code and paper with interest!
Just to let you know, I checked the inference time with your test_wider.py code with widerface db (after resizing to vga size) and it doesn't 37.7 ms. Can you tell me how you measured it?

Below is an example of where I took the measurement points. Thanks :)

        t1 = time.time()

        # NOTE: modified
        # det0 shape: 750, 5
        det0 = detect_face(net, img, shrink, thresh=thresh)

        # multi-scale
        if not single_scale_test:
            print('det1')
            det1 = flip_test(net, img, shrink, thresh=thresh)  # flip test

            print('det2')
            [det2, det3] = multi_scale_test(net, img, max_im_shrink, thresh=thresh)

            det = np.row_stack((det0, det1, det2, det3))
            dets = bbox_vote(det)
        else:
         
            dets = det0

        t2 = time.time()

        print("Detect %04d th image costs %.4f sec" % (counter, t2 - t1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant