Run an image classification model on STM32L4 Discovery
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Open Anaconda Prompt and run
jupyter notebook. In the browser, navigate to the extracted project files and open lab.ipynb.Check the indicator to the left of the cell:
In[] before running, In[*] while running, and In[N] (a number) when complete.Select X-CUBE-AI 7.0.0. Later versions might not connect successfully.
Activate the Conda environment with
conda activate ml_lab and install opencv-python, protobuf==3.20, and tqdm==4.50.2. Then, go to the working folder’s Misc directory.From the
Misc folder, run python ui_python_ai_runner.py. If the board isn’t detected, press the black button on the board to reset and try again.