Giter Site home page Giter Site logo

Comments (6)

RizhaoCai avatar RizhaoCai commented on July 24, 2024

Please check https://github.com/YYuanAnyVision/mxnet_mtcnn_face_detection

from metapattern_fas.

chenruolin2019 avatar chenruolin2019 commented on July 24, 2024

Ok ,thank you. But I couldn't find the "mxnet_detector.detect_and_align" function in "https://github.com/YYuanAnyVision/mxnet_mtcnn_face_detection"

from metapattern_fas.

RizhaoCai avatar RizhaoCai commented on July 24, 2024

Ok ,thank you. But I couldn't find the "mxnet_detector.detect_and_align" function in "https://github.com/YYuanAnyVision/mxnet_mtcnn_face_detection"

I see.

Below are the contents of mxnet_detector.py I used in my machine. You can create a file named "mxnet_detector" and copy the below contents to this file.

import mxnet as mx
from mtcnn_detector import MtcnnDetector
import cv2
import os
import time

detector = MtcnnDetector(model_folder='/home/rizhao/code/mxnet_mtcnn_face_detection/model', ctx=mx.cpu(0), num_worker = 8 , accurate_landmark = False)

def detect_and_align(img, desired_size=256):
    global detector
    results = detector.detect_face(img)

    total_boxes = results[0]
    points = results[1]

    # extract aligned face chips
    chips = detector.extract_image_chips(img, points, desired_size, 0.37)
    return chips[0]

from metapattern_fas.

chenruolin2019 avatar chenruolin2019 commented on July 24, 2024

Ok, thank you very much! I'll try it soon.

from metapattern_fas.

chenruolin2019 avatar chenruolin2019 commented on July 24, 2024

Excuse me, I have another question:
cannot import name 'metric_report_from_dict' from 'test'
I couldn't find the file named "test".

from metapattern_fas.

RizhaoCai avatar RizhaoCai commented on July 24, 2024

Excuse me, I have another question: cannot import name 'metric_report_from_dict' from 'test' I couldn't find the file named "test".

Please refer to #4

from metapattern_fas.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.