ZhaoJ9014 / face.evoLVe

🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥
MIT License
3.41k stars 759 forks source link

How do i apply the model i obtained by training #154

Open stuartchen1949 opened 3 years ago

stuartchen1949 commented 3 years ago

I'm new to machine learning, so it would be a great help if anyone can tell me where the model is stored and how can i apply this model, say, use one image and get a picture with faces illustrated and marked with names? Great thanks!

perfectZh commented 3 years ago

Hi, the model is stored in the MODEL_ROOT. you can find it and edit it in the "config.py".
If you want to see the visualization, you can try to open ipython notebook and type:

from PIL import Image from detector import detect_faces from visualization_utils import show_results

img = Image.open('some_img.jpg') # modify the image path to yours bounding_boxes, landmarks = detect_faces(img) # detect bboxes and landmarks for all faces in the image show_results(img, bounding_boxes, landmarks) # visualize the results

chocokassy commented 3 years ago

Hi, the model is stored in the MODEL_ROOT. you can find it and edit it in the "config.py". If you want to see the visualization, you can try to open ipython notebook and type:

from PIL import Image from detector import detect_faces from visualization_utils import show_results

img = Image.open('some_img.jpg') # modify the image path to yours bounding_boxes, landmarks = detect_faces(img) # detect bboxes and landmarks for all faces in the image show_results(img, bounding_boxes, landmarks) # visualize the results

hello, the code you mentioned can only perform face detection, but cannot recognize faces. How can I train my own data set and recognize a single picture, that is, frame the face and mark the name? Thank you!