Cookie Consent by PrivacyPolicies.com
Quality Automation with AI and Relimetrics

Knowledge Hub

Explore & Learn ReliVision with Proven Use Cases

Use Cases
User Guide
Installation

Version 3.0.0

Quality Automation with AI and Relimetrics

Detection of Defects on Silicon Wafers

The task is to detect silicon wafers and classify their type depending on defects. This is a multi-class Object Detection task where classes are “good”, “small defect” and “big defect”.

Dataset:

The dataset contains 70 original images that mostly contain defective silicon wafers and 64 augmented images that only contain good silicon wafers. There are 3 types of silicon wafers, all annotated in LabelMe format where, as depicted below.

Data Loading & Annotation:

You have 2 options:

  • Download data annotated with LabelMe format. Load the imageset and the annotations that you downloaded using ReliUI. Import the imageset using “Import Data” and the annotation file per image folder using the “Import Annotated Dataset” (with the LabelMe annotation format option). Your annotated dataset will be available in the gallery.
  • Load the raw imageset and annotate the data yourself in any industry standard format you like using the ReliUI’s intuitive annotation functions. Download the image folder. Follow the ReliVision Knowledge Hub User Guide (ReliUI: Data Curation) to define the target state/label (which is the label of the silicon wafer as good, small defect or big defect) to annotate the defects (using rectangle annotation tool as the task is object detection) and to save them in an appropriate industry standard format (for which LabelMe is a good option). A sample annotation of an image, where good, small defect and big defect silicon wafers are shown in green, red and yellow boxes, is as follows:

        Silicon Wafer Defect Detection Model Training:

        Follow the ReliVision Knowledge Hub User Guide (ReliTrainer: Training an AI Block) to train your AI model for silicon wafer defect detection. The main steps, detailed in the User Guide, include

        • Model type selection: Object Detection
        • Annotated dataset selection
        • Automated or manual train/test split which essentially spares some data for training validation purposes.
        • Hyper parameter setting: We have chosen the following in this use case:
        • Epochs: 500
        • X-Y Resolution: 640 (default)
        • Learning Rate: 0.01 (default)
        • Momentum: 0.937 (default)
        • Weight Decay: 0.005 (default)

        Training and Validation loss and mAP curves as a function of epochs.

        Building and Running the Pipeline:

        Use the pipeline editor to build your pipeline by dragging and dropping the AI/Basic blocks. You will need to select an input data source (your raw image set) and a a classification AI Block connected in series as depicted below. Follow the ReliVision Knowledge Hub User Guide (ReliTrainer: Pipeline Editor / AI Pipeline).

        Simply run your pipeline using the execute button at the top. You can review your results using the ReliUI data annotation interface. Your pipeline’s outputs will be saved as a separate set of annotations for each image it is run on. Visit the ReliVision Knowledge Hub User Guide (ReliTrainer: Pipeline Editor / AI Pipeline) for more details. Here is an output example:

        Try it by yourself.
        Download ReliVision now!

        Quality Automation with AI and Relimetrics
        ReliUI: Data Curation
        Quality Automation with AI and Relimetrics

        Create a New Session / Import a Session

        1. To initiate any operation within the tool, the user must first create a new session by clicking on the “Create a New Session” button.

        2. The user can perform various operations on the created session by right-clicking on it.

        • Load
        • Delete
        • Rename
                • Export

                3. The user can import a session by clicking on “Import Session” button.

                4. The user has the possibility to choose between importing locally or from the server.

                5. Once selected, click on "Next" choose the directory where the session is saved, and finally click on "Import”.

                6. All created / imported sessions will be displayed on the main screen. The user can view details for each session, including the number of image sets, session type, and permissions.

                ReliUI: Data Curation
                Quality Automation with AI and Relimetrics

                Importing/Exporting Data

                Import Raw Dataset

                1. The Gallery screen shows the datasets with the thumbnails. The user can create a new folder and import images or import annotated data. The user can import data by clicking on the “Import Data” button

                2. The user can Import Data with the options below:

                • Import Images enables users to import files into a new imageset
                • Import Image Folders enables users to import folders with unannotated images
                • Import Annotated Dataset enables users to import annotated data formats below:
                • LabelMe
                • COCO
                • YOLO
                • Classification
                • Import From ReliAudit imports audit images from ReliAudit
                • Create Empty Imageset enables users to import an empty imageset

                3. When the user selects the “Import Images” option and clicks the “Import” button, the import process initiates

                4. The user should select images from the directory. Once images are selected, click on “Open”

                5. The imported data will be shown as a new dataset on the Gallery screen

                6. The user can check the images by double-clicking on the dataset folder. Users can:

                • Display images
                • Split datasets into training and test sets automatically with a random split or manually balance classes in train/test sets
                • Filter images to train/test/unassigned sets and statuses to annotated/not annotated
                • Select image for annotation

                Import Annotated Data

                1. The Gallery screen shows the datasets with the image thumbnails. The user can create a new folder and import images or import annotated data. The user can import data by clicking on the “Import Data” button

                2. When the user selects the “Import Annotated Dataset” option and clicks the “Import” button, the import process initiates

                3. The user can select one of the following annotation formats:

                • LabelMe is the native format of Label Me
                • COCO is the common JSON format for machine learning
                • YOLO is the favored annotation format of the Darknet family of models
                • YOLOv3 is the third version of YOLO family formats
                • YOLOv4 is a format used with the Pythorch part of YOLOv4
                • YOLOv5 is a modified version of YOLO Darknet annotations
                • Classification imports image data organized in subfolders and automatically assigns each subfolder name as a label

                4. When the user selects the “COCO” option and clicks the “Import” button, the import process initiates

                5. The user should enter the folder directory. Once a file is selected, click on “Open”

                6. The imported data will be shown as a new imageset on the Gallery screen

                7. The user can check the annotated images by double-clicking on the imported folder. If any image is selected, the user can see the defined states and ROIs

                Export Data

                1. To export data, the user should choose a dataset folder from the Gallery. There are two options:

                • Click on the “More” icon () and select “Export” option to export all data
                • Double-click on the imageset. Once images are displayed, the user can select from the options: only this page, all images, or specific ones and then click “Export”

                2. When the user chooses the “Select only this page” option, the images on the current page are selected

                3. When the user chooses the “Select all images” option, all images in the folder are selected

                4. The user can export individual images or selected ones:

                • Click on the “Apply Operations” icon and then select “Export”
                • Right-click on the chosen images and then select “Export”

                5. Components can be selected among the existing ones. Once “Classes” is selected, click on “Export”

                6. The user can select the “Export Images” option to export images and “Add File Names” option to add file names to the exported data

                7. The user can choose one of the formats below:

                • LabelMe
                • COCO
                • YoloDarknet
                • Yolov3
                • Yolov4
                • Yolov5

                8. When the user selects “COCO” or any format and then clicks on “Export”, the export process initiates 

                9. The user should choose a directory and then click on “Select Folder” to save the data

                10. The exported image folder and their corresponding annotations file are shown in the designated directory

                11. The user can check if the data has been correctly exported and saved in the designated directory

                ReliUI: Data Curation
                Quality Automation with AI and Relimetrics

                Dataset Operations

                Extract ROIs

                1. The Gallery screen shows the imagesets with the thumbnails. The user can extract ROIs of an image folder. Once extracted, the Gallery will display an image folder containing these ROIs. To export this folder, simply click on “More” icon () and select “Extract”

                2. Group names correspond to ROI groups within the imageset. By checking the checkbox “Group Name”, the user can export all ROI groups. The user can individually select ROI groups by clicking on the component name and then “Extract”

                3. Once extracted, the Gallery will display an image folder containing these ROIs

                4. The user can check the imageset by double-clicking on the imported folder. If any image is selected, the user can see the ROIs

                5. The user can export these ROIs by clicking on “More” icon () and selecting “Export”

                6. The user should select “Label Me” or any format and then click on “Export” to start the exporting process

                7. Among the existing components, users can make selections. The user can either export ROIs along with the images by checking the “Export Images” button or export ROIs separately without the images. Once the component names “Classes” and “Export Images” are selected, click on “Export”

                8. The user should choose a directory and then click on “Select Folder” to save the data 

                9. The user can check if the data has been correctly exported and saved in the designated directory

                Merge & Download Dataset

                The user can operate the below options in the Gallery screen;
                - Merge image sets
                - Download image sets from the server 
                - Crop & Rotate images

                1. The user has the option to merge image sets either by clicking on the “Merge” icon on the top-right or by selecting the “More” icon () in the folder’s options menu

                2. Once clicked, select the desired image sets and specify the Merge output folder

                3. If the user clicks on “Delete input imagesets” option, selected input image sets will be deleted

                4. Once all selections are done, click on “Merge” button

                5. The merged image set will be displayed in the gallery

                6. The user can download/retrieve image sets from the server by first entering the URL and choosing the desired data from the available choices

                7. Once selected, clicking “Next” will initiate the downloading process

                8. The new image set is added to the gallery. The user can check images by double-clicking on the image set folder

                9. The user can “Crop & Rotate” an image set by selecting the “More” icon () in the folder’s options menu

                10. Enter the parameters and click on “Crop” or “Load defaults” buttons and then “Extract”

                11. The cropped and extracted imageset will be displayed in the Gallery

                12. The user can check images by double-clicking on the image set folder

                ReliUI: Data Curation
                Quality Automation with AI and Relimetrics

                Data Annotation

                ROI Annotation

                The image annotation screen offers drawing and editing tools that enable users to manually annotate an image. These operations are carried out within the context of the currently displayed image. The user can:
                • Navigate between images within an active image set
                • Zoom and pan an image using CTRL + Mouse Wheel
                • Generate regions of interest using basic shapes like rectangles and polygons
                • Specify classes and states for these regions of interest
                • Choose distinct colors for each class and/or state by color picker
                • Adjust existing regions of interest by modifying their properties (name, size, position, states), duplicating, or deleting them
                • Create a parent-child hierarchy to semantically group regions of interest

                1. In the Gallery, the user should select a dataset to initiate the annotation process

                2. The user can start the annotation by clicking any image from the image folder

                3. The right-side menu plays an essential role in the annotation screen, consisting of two primary sections: States and ROI List. In the States section, the user can create, edit, or remove components (classes). States can be added to any predefined class. To create a new component, the user simply clicks on “Add Component”

                4. First, the user should define the component name (E.g. Classes) and add new states (E.g. OK, NOK) click on “Add New Label” and finally click on “Create”

                5. Once the component is created, the user can add a new state by clicking on the (+) icon to include additional states

                6. A different color can be assigned to every component or state through the color picker

                7. Annotation Toolbar is located horizontally at the top of the Annotation Screen. Each tool in the toolbar is represented by an icon. The user should select the “Draw” icon to create ROIs

                8. Based on the use case, the user can choose the appropriate annotation shape options below:

                • “Rectangle” is for area annotations
                • “Polygon” is for roughly or perfectly outlined annotations
                • “Whole Image” is for annotation without the region specification of the object

                9. If the “Rectangle” option is selected, the user should define the ROI by drawing it

                10. If the “Polygon” option is selected, the user should define ROI by connecting straight lines

                11. Once an ROI is drawn, the user can select the appropriate defined class/state from the provided list

                12. Once all the ROIs in the current image are defined, the user can proceed to the next image by either clicking on the arrows at the top or by using the shortcut CTRL+D

                13. By clicking on any ROI, the user can modify its dimensions by adjusting its size as needed. Also, the user can delete an ROI by selecting and then pressing the “Delete” key on the keyboard

                14. The user can copy and paste the same ROI by clicking on “CTRL+C”

                15. Once the annotation is completed, the image's status is automatically changed to “Annotated” in the status column

                Whole Image Annotation

                Annotating the whole image without region specification

                1. In the Gallery screen, the user should select a dataset to initiate the annotation process

                2. The user can start annotation by clicking any image from the image folder

                3. The user should select “Whole Image” option to annotate the image without any region specification

                4. After choosing the “Whole Image” option from the annotation toolbar and then clicking on the image, a pop-up for states/components will appear. Simply click “Add Component” to continue with the annotation process

                5. First, the user should define the component name (E.g. Classes) and add new states (E.g.Router) click on “Add New Label” and finally click on “Create”

                6. The user can change the color of the component through the color picker

                7. Once all the ROIs in the current image are defined, the user can proceed to the next image by either clicking on the arrows at the top or by using the shortcut CTRL+D

                8. Once a “Whole Image” ROI is drawn, the user can select the appropriate defined class/state from the drawn box. Also, the user can delete an ROI by selecting and then clicking the “Trash” icon in the top toolbar. Annotation can be repeated with identical steps for all images

                9. Once the annotation is completed, the image's status is automatically changed to “Annotated” in the status column

                10.  The user can double check the annotated images by clicking on the imageset

                Review and Manage Annotated Dataset

                The user can edit, review or manage annotated images. The user can:
                • Display images
                • Split image sets into training and test sets automatically with a random split or manually balance classes in train/test sets
                • Filter images to train/test/unassigned sets and statuses to annotated/not annotated
                • Load New Images
                • Apply Additional Operations
                • Select an image for annotation
                • Edit ROIs States
                • ROI list details: show/hide annotations, show/hide fillings

                1. In the image list, “Edit ROIs States” allows the user to change the state of ROIs

                • From the available “ROI Groups”, the user can make the selections. When the component name “Classes” is chosen, simply click on “Next” to proceed
                • When the “Select all ROIs” checkbox is marked, it allows the user to choose all ROIs collectively. Alternatively, specific ROIs can be individually selected or deselected from the list
                • The user should first choose one of the defined states to assign a state as a new ROI for the dataset. After selecting a state, click on “Copy” to confirm the assignment

                2. The dataset will be updated with the “New state/states”. The user can review them in the ROI LIST

                3. “Load New Images” allows the user to upload images locally

                4. The user should select an image from the directory. Once an image is selected, click on “Open”

                5. The imported image will be shown in the image list

                6. “Apply Operations” allows the user to perform multiple operations. To enable this function, the user should choose “Only this page” or “Select all images” option to select images

                7. Once “Apply Operations” dialog box is displayed, the user can:

                • Export or Delete images by clicking on these selections
                • Move images to another dataset by selecting Move to Another Imageset

                8. “Split Images” allows the user to split images before the training as Train/Test Sets with three options

                9. As the dataset is split, the image status will change from “Unassigned” to “Train/Test Sets”

                10. “Clear Sets” allows the user to clear all the current statuses. The new statuses of the images will change to Unassigned Set

                11. “All Statuses” option enables the user to filter images based on “Annotated” or “Not Annotated” statuses. Upon selecting either of these options, the list view will be automatically updated to reflect the chosen filter

                12. “All Images” allows the user to filter the images by selecting Train/Test/Unassigned statuses. Upon selecting either of these options, the list view will be automatically updated to reflect the chosen filter

                13. If the user clicks on the “More” icon () on the right, a dialog box will be displayed containing functions similar to “Apply Operation”

                14. In the annotation screen, ROI LIST displays the defined Regions of Interest. The user has the option to switch the visibility of these ROIs by clicking on the “View” icon

                15. The user can change the ROI states by selecting options from the dropdown menu

                16. “Show Annotations” switch button allows the user to show/hide annotations

                17. “Show Filling” switch button allows the user to show/hide the ROI fillings. If the fillings are hidden, only the edges will be displayed

                Quality Automation with AI and Relimetrics

                AI Model Train / Test

                AI powered solution design-train/test-build functions of the ReliVision are performed in the ReliVision's Training Server [ReliTrainer] which is accessible through the user-friendly ReliUI application. You can train detection, segmentation and classification models, test your models, build complex visual analytics pipelines using your trained AI blocks (AI models) together with Basic blocks (Digital signal/image processing - DSP/DIP - functions).

                Refer to ReliTrainer user guide for further details. AI Model Train/Test functions are available with a licensed ReliTrainer.

                Quality Automation with AI and Relimetrics

                Deployment

                AI powered visual analytics solutions that are built, trained and tested, can be deployed to ReliAudit through the user friendly ReliUI interface. The deployed solutions are run, managed and monitored at the edge by the ReliAudit. The user feedback received from the ReliAudit can also be pulled back to ReliTrainer via ReliUI for retraining. 

                Refer to ReliAudit user guide for further details. Deployment functions are available with a licensed ReliAudit.