Expert mode
Last updated
Last updated
Expert Mode is designed for users with advanced knowledge of machine learning and Keras, offering greater control over model customization. This mode is useful when working on complex models or when you need specific adjustments beyond the pre-built learning blocks in Edge Impulse Studio. It's also great if you want to copy and paste existing models or code for quick modifications.
If you have expertise in machine learning and Keras, you can switch to Expert Mode to access the entire Keras API and bring in your models or custom architectures:
Examples are available in the sub-pages of the machine learning concepts articles.
Already got a trained model?
If you already have a trained model, you can bring this model to Edge Impulse using our BYOM feature.
Bring your own model or BYOM allows you to profile, optimize and deploy your own pretrained model (TensorFlow SavedModel, ONNX, or LiteRT (previously Tensorflow Lite)) to any edge device, directly from your Edge Impulse project.
To enable Expert Mode in Edge Impulse:
Navigate to the model configuration page in Edge Impulse Studio.
Click on the "⋮" button (three vertical dots) to open the options menu.
Toggle the "Expert Mode" option.
Once enabled, you can access and modify the full Keras code for your model. This unlocks advanced customization features, allowing you to train your model to meet specific requirements.
In Expert Mode, you have access to a wide range of advanced features, including:
Custom Architectures: Use the full Keras API to create and modify neural network architectures. This includes changing loss functions, optimizers, and printing model architectures.
Early Stopping Callback: Prevent overfitting by setting up early stopping callbacks, with control over parameters such as monitor
, min_delta
, patience
, and restore_best_weights
. Learn more about Early Stopping.
Object Weighting for FOMO: Adjust the weighting of object output cells in the loss function, particularly useful for rare object detection scenarios. Expert Mode Tips for FOMO.
MobileNet Cut Point Adjustment: Customize cut points in the MobileNetV2 architecture to modify spatial reduction and model capacity. MobileNet Cut Point Adjustment.
FOMO Classifier Capacity Enhancement: Increase the capacity of the FOMO classifier by adding layers or increasing filters. Enhance FOMO Classifier.
Transfer Learning Adjustments: Customize the final layers of pre-trained models like MobileNetV1 for specific tasks, such as audio or image classification. Learn more about Transfer Learning.
Activation Functions: Implement custom activation functions to enhance model performance. Implementing Activation Functions.
Optimizer Customization: Integrate advanced optimizers like VeLO for superior training efficiency. Using VeLO Optimizer.
Loss Function Customization: Define and implement custom loss functions tailored to your specific problem. Customizing Loss Functions.
Epoch Management: Control the number of training cycles and apply early stopping techniques to optimize training time and model accuracy. Epoch Management.
For security reasons, network access is not enabled for jobs triggered by learning blocks, so external pre-trained weights cannot be fetched. Enterprise users can contact their solution engineer if network access is needed.
Expert Mode provides ML experts access and flexibility to fine-tune their machine-learning models for optimal performance. By accessing the Keras API,users can customize every aspect of their models, including architecture design, loss functions, and optimizers. Features such as early stopping, object weighting, and MobileNet cut-point adjustment enable the creation of highly specialized models tailored to their unique project requirements.
This advanced level of customization accelerates experimentation and ensures models are precisely optimized to meet the specific constraints and demands of each project.