Luxonis
    Our new model ZOO works with DepthAI V3. Find out more in our documentation.
    0 Likes
    Model Details
    Model Description
    YOLO v8 Nano is a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility. In this case, the model is specially trained on PPE (Person Protective Equipment) datasets to detect the person and its safety equipment, machinery, vehicles, and safety cones. The model detects if the person wears a hard hat, mask, and safety vest.
    • Developed by:
    • Shared by:
    • Model type: Computer vision
    • License:
    • Resources for more information:
    Training Details
    Training Data
    The model was trained on . The dataset consists of 2801 image samples with labels in YoloV8 format. There are 10 classes to detect from the dataset: 'Hardhat', 'Mask', 'NO-Hardhat', 'NO-Mask', 'NO-Safety Vest', 'Person', 'Safety Cone', 'Safety Vest', 'machinery', 'vehicle'.
    Testing Details
    Metrics
    Unfortunately, no evaluation results are given for the specific model, so we are listing evaluation results done on COCO pretrained model.
    MetricValue
    mAP@50-9537.3
    params3.2M
    Results are taken from .
    Technical Specifications
    Input/Output Details
    • Input:
      • Name: image
        • Info: NCHW BGR un-normalized image
    • Output:
      • Name: multiple (see NN archive)
        • Info: intermediate yolo results
    Model Architecture
    • Backbone: Lightweight with CSPNet for efficient feature extraction.
    • Neck: PANet and FPN for multi-scale feature fusion.
    • Head: Anchor-free object detection head.
    Please check the for more information.
    Throughput
    Model variant: ppe-detection:640x640
    • Input shape: [1, 3, 640, 640] • Output shapes: [[1, 15, 80, 80], [1, 15, 40, 40], [1, 15, 20, 20]]
    • Params (M): 3.008 • GFLOPs: 4.537
    PlatformPrecisionThroughput (infs/sec)Power Consumption (W)
    RVC2FP1613.07N/A
    RVC4INT8324.163.30
    * Benchmarked with , using 2 threads (and the DSP runtime in balanced mode for RVC4).
    * Parameters and FLOPs are obtained from the package.
    Quantization
    The RVC4 version of the model was quantized on 70-image subset of .
    Utilization
    Models converted for RVC Platforms can be used for inference on OAK devices. DepthAI pipelines are used to define the information flow linking the device, inference model, and the output parser (as defined in model head(s)). Below, we present the most crucial utilization steps for the particular model. Please consult the docs for more information.
    Install DAIv3 library:
    pip install depthai
    
    Define model:
    model_description = dai.NNModelDescription(
        "luxonis/ppe-detection:640x640"
    )
    
    nn = pipeline.create(dai.node.DetectionNetwork).build(
        <CameraNode>, model_description
    )
    
    The model is automatically parsed by DAI and it outputs the message (bounding boxes, labels, and scores of the detected objects).
    Get model output(s):
    while pipeline.isRuning():
        nn_output: dai.ImgDetections = parser_output_queue.get()
    
    Example
    You can quickly run the model using our script. It automatically downloads the model, creates a DepthAI pipeline, runs the inference, and displays the results using our DepthAI visualizer tool. To try it out, run:
    python3 main.py \
        --model luxonis/ppe-detection:640x640
    
    You can also try running the example.
    PPE Detection
    Personal Protective Equipment detector based on YOLOv8 Nano.
    License
    GNU Affero General Public License v3.0
    Commercial use
    Downloads
    313
    Tasks
    Object Detection
    Model Types
    ONNX
    Model Variants
    NameVersionAvailable ForCreated AtDeploy
    RVC2, RVC49 months ago
    Luxonis - Robotic vision made simple.
    XYouTubeLinkedInGitHub