1. total_loss = loss_rpn_cls + loss_rpn_loc + loss_cls + loss_box_reg + loss_mask (1) 2.3.2 Image processing with scikit-image v0.25.2 (2025) Scikit-image is a Python library dedicated to image processing. Its aim is to provide a diverse collection of powerful and free tools. Its algorithms are widely used in research, education, and industrial applications (van der Walt, et al., 2014). The measure submodule and the regionprops function are used to extract measurements from each identified mineral, including contours, centroid, area, perimeter, and major and minor axis diameters. Pandas and NumPy are used to compute modal percentages, which are represented in the Streckeisen (1976) ternary diagram using Python-Ternary. Grain-size distributions are analyzed using histograms generated with Matplotlib, and the results are integrated into a PDF report. 3. EXPERIMENTATION AND RESULTS The aim of this section is to examine the Detectron2-v0.6 metrics for the training, validation, and evaluation datasets, as well as the results of mineral measurements obtained using scikit-image. 3.1 Computational platform Deep Learning models require a computational environment that integrates various hardware and software tools. Google Colaboratory is one of the most widely used platforms for this purpose. Table 1 summarizes the characteristics of the computational platform employed. Table 1 – Characteristics of the Google Colab computational platform Feature Specification Feature Specification Processor Intel ® Xeon ® Storage 235.7 GB CPU Speed 2.20 GHz Graphics Card (GPU) NVIDIA A100-SXM440GB CPU Cores 12 Python Version 3.11.11 Architecture x86_64 Compiler (GCC) 11.4.0 System RAM 83 GB Operating System Linux Ubuntu 22.04.3 LTS 3.2 Detectron2-v0.6 model metrics 3.2.1 Training dataset The 400 images were divided into 80% for training and 20% for validation. Using random
RkJQdWJsaXNoZXIy MTM0Mzk2