Platform Expansions
This page is dedicated to documenting the various extensions and plugins available for the TEXTaiLES platform. These extensions enhance the core functionality of TEXTaiLES, allowing developers to customize their experience and add new features as needed.
Integrate more Machine Learning models for each task
Developers can integrate additional machine learning models for the pre existing tasks following the guidelines provided in the following sections.
Adding a new model for Semantic Segmentation
- To register a new model for Semantic Segmentation, create a new Python file inside the
/Backend/Segmentation/modelsand update the__init__.pyfile to include your new model. - Update the
models_available_segmentation.csvon the/AmalthAI_WebApp/data/folder. - Create a new json following the existing structure in
/Backend/Segmentation/configfilesand name it using the model name. - Update the training options inside the
training_button_segmentation.pyby adding your model to the list of the available models.
Its important to note that the first column of the models_available_segmentation.csv file should match the name of the created json file in step 3. In the second column, you can write the display name of the model that will appear in the platform UI.
Adding a new model for Object Detection
Currently, AmalthAI is designed to use only YOLO family models using the Ultralytics package. Furthermore, the annotation settings are properly configured to work with YOLO models.
If you want to add a new model from the YOLO family, you can do so by following these steps:
- Create a new Python file for your model inside the
/Backend/ObjectDetection/ultralyticsdirectory namedyolovX.pywhere X is the version. This will be used to train the model. Follow the other pre-existing files as examples. - Update the
models_available_object_detection.csvon the/AmalthAI_WebApp/data/folder to include your new model. - Update the training options inside the
training_button_object_detection.pyby adding your model to the list of the available models.
Adding a new model for Image Classification
- To register a new model for Image Classification, create a new Python file inside the
/Backend/Classification/modelsand update themodel_factory.pyfile to include your new model. Follow the other pre-existing registrations as examples. - Update the
models_available_classification.csvon the/AmalthAI_WebApp/data/folder to include your new model. - Update the training options inside the
training_button_classification.pyby adding your model to the list of the available models.
To ensure proper integration of your new model, make sure it arrives from the Torchvision models. You can refer to the Torchvision Models Documentation for more details on available models and their usage.