Bad results with onnx-model
Hi!
I made my own programm with onnx-inference with your model, and I get very bad results.
For example, I get high confidence for helmets (around 0.95) for caps.
Could you make a huggingface space or smth to compare results.
Hi there.
Did you try the quantized model or float model?
Could you also confirm what detection threshold you’re targeting?
Here are a couple of recommendations from the team that trained the model:
- Set the threshold to 0.995.
- The model is trained on cropped person image patched for two classes - helmet and safety vest. You must be waiting a helmet or safety vest for good accuracy.
- In order to use the PPE detector properly, a person detector needs to run first to provide a full person image, and cropping the person image patch, and then run the PPE detector .
If you'd like a general face detection pipeline (not specific to Personal Protective Equipment (PPE)), I recommend you look at https://huggingface.co/qualcomm/MediaPipe-Face-Detection.
The mediapipe model consists of 2 parts: a face detector and a "landmark generator" for face features, like your eyes / mouth. If you only need face detection, you could just use the Face Detector model.