Model Pipeline - DNN-based face detection
This pipeline uses a Deep Neural Network (DNN) to find faces in images. It takes an image, processes it step-by-step, and outputs boxes showing where faces are.
This pipeline uses a Deep Neural Network (DNN) to find faces in images. It takes an image, processes it step-by-step, and outputs boxes showing where faces are.
Epoch 1: ************ (1.2) Epoch 2: ******** (0.9) Epoch 3: ****** (0.7) Epoch 4: **** (0.5) Epoch 5: ** (0.35)
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 1.2 | 0.60 | Model starts learning, loss high, accuracy low |
| 2 | 0.9 | 0.72 | Loss decreases, accuracy improves |
| 3 | 0.7 | 0.80 | Model learns better face features |
| 4 | 0.5 | 0.87 | Loss continues to drop, accuracy rises |
| 5 | 0.35 | 0.92 | Good convergence, model detects faces well |
detections?
net = cv2.dnn.readNet('model.caffemodel', 'deploy.prototxt')
blob = cv2.dnn.blobFromImage(image, 1.0, (300, 300), (104, 177, 123))
net.setInput(blob)
detections = net.forward()blob = cv2.dnn.blobFromImage(image, 1.0, (224, 224), (104, 177, 123)) net.setInput(blob) detections = net.forward()What should you fix?
Pass the test and this pattern moves unknown