-
Notifications
You must be signed in to change notification settings - Fork 2
6 Model Deployment
Razin Bin Issa edited this page Feb 28, 2026
·
2 revisions
Below are the tools associated with model deployment in GRIME AI:
The Segment Images tab allows for automatic segmentation of images using locally stored machine learning models. Currently two model related file formats are supported: .torch and .pth
- Under Select Model, click Browse and select a trained model file (e.g., a
.torchfile). - The selected file path will appear in the Select Model field.
- Under Select Folder with Images, click Browse and select the folder containing images you want to segment.
- Select the folder, not individual images.
- In the Labels panel (right side), choose the label/class you want to segment (e.g.,
water,staff). - The selected label determines which class the model will generate masks for.
Under Output Options, choose what to save during inference:
- Save Predicted Masks - saves the generated masks for each image.
- Save Probability Maps - saves probability/confidence outputs (if available for the model).
- Copy Original Images - copies the original images alongside outputs for easier packaging/review.
- Click Segment Images to start processing the selected folder.
The Model Metadata panel (bottom-right) displays helpful information about the selected model, such as:
- available categories/labels,
- training settings (e.g., learning rate, epochs),
- validation metrics (e.g., val loss, accuracy, mIoU),
- target category name and base model.
The COCO 1.0 Generator tab allows users to generate COCO-format annotation files from existing images and mask files. These COCO files can then be used for model training within GRIME-AI or external deep learning frameworks.
- Click Browse next to Enter folder path for images (and masks)....
- Select the folder containing the images to be annotated.
- If masks are stored within the same directory, they may be detected automatically.
- Click Browse next to Enter mask file path....
- Select the corresponding mask file or mask directory.
- Enable Use Single Mask File if all annotations are stored within one combined mask file.
- Leave unchecked if each image has its own corresponding mask file.
- Click Generate COCO Annotations to create the COCO
.jsonannotation file. - The generated file can be used in the Train Model tab or exported for use in other machine learning workflows.
- Ensure image filenames match their corresponding mask filenames.
- Binary masks should follow consistent labeling conventions before generating COCO files.
- COCO output follows the standard COCO dataset structure (images, annotations, categories).
For updates on GRIME and blog-style content, visit: gaugecam.org