Skip to content

models detect defects

github-actions[bot] edited this page Aug 23, 2024 · 4 revisions

detect-defects

Overview

The "Detect Defects" is a model designed for meticulous examination of images. It operates by employing GPT-4 Turbo with Vision to compare a test image against a reference image. Each analysis focuses on identifying variances or anomalies, classifying them as defects. This methodical comparison ensures that any discrepancies are accurately detected. The outcomes of these comparisons are then used to establish a comprehensive understanding of the product's quality, making it an essential tool in maintaining rigorous quality control standards.

Inference samples

Inference type Python sample (Notebook) CLI with YAML
Real time deploy-promptflow-model-python-example deploy-promptflow-model-cli-example
Batch N/A N/A

Sample inputs and outputs (for real-time inference)

Sample input

{
    "inputs": {
        "reference_image": reference_image_path,
        "test_image": test_image_path,
        "system_message": "You're a professional defect detector. Your job is to compare the test image with reference image, please answer the question with \"No defect detected\" or \"Defect detected\", also explain your decision as detail as possible."
    }
}

Sample output

{
    "outputs": {
        "response": "Defect detected. The test image shows a can lid with several noticeable defects when compared to the reference image. There are apparent signs of chipping or peeling on the surface around the tab of the can lid. The coating or material of the lid seems to have come off in patches, revealing the underlying layer or base material. This type of damage could compromise the integrity of the seal or lead to contamination of the can's contents. The reference image shows a pristine can lid with a smooth, uniform finish and no signs of damage, which is in contrast to the damaged state of the test image."
    }
}

Version: 3

Tags

hiddenlayerscanned

View in Studio: https://ml.azure.com/registries/azureml/models/detect-defects/version/3

Properties

is-promptflow: True

azureml.promptflow.section: gallery

azureml.promptflow.type: standard

azureml.promptflow.name: Detect Defects

azureml.promptflow.description: Identify inconsistencies by comparing images with GPT-4 Turbo with Vision to ensure stringent quality control.

inference-min-sku-spec: 2|0|14|28

inference-recommended-sku: Standard_DS3_v2

Clone this wiki locally