Help, stm32N6 fails to use st-mnist, no response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-21 7:48 PM
Please help, why can my configuration of flower work normally, but when I change the model st-minst and follow the same steps to deploy and burn, the LCD screen does not light up and the model does not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-21 8:00 PM
Hello, I use st-minst in ST Model Zoo to deploy my project, but when I burned stm32N6570_DK, it didn't work. However, I tried flower and food and they both worked fine. Why can't st-minst work? Are there other steps required?
This is my command and .yaml content
python stm32ai_main.py --config-path ./src/config_file_examples/ --config-name deployment_n6_config.yaml
general:
# path to a `.tflite` or `.onnx` file.
# model_path: ../../stm32ai-modelzoo/image_classification/mobilenetv2/ST_pretrainedmodel_public_dataset/flowers/mobilenet_v2_0.35_128_fft/mobilenet_v2_0.35_128_fft_int8.tflite
model_path: ../../stm32ai-modelzoo/image_classification/st_mnist/ST_pretrainedmodel_public_dataset/emnist_byclass/st_mnist_v1_28_tfs/st_mnist_v1_28_tfs_int8.tflite
# model_path: ../../stm32ai-modelzoo/image_classification/mobilenetv2/ST_pretrainedmodel_public_dataset\food-101\mobilenet_v2_0.35_128_fft/mobilenet_v2_0.35_128_fft_int8.tflite
operation_mode: deployment
dataset:
# name: flowers_dataset
# class_names: [daisy, dandelion, roses, sunflowers, tulips]
name: hande
class_names: [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]
# name: food-101
# class_names: [apple_pie,baby_back_ribs,baklava,beef_carpaccio,beef_tartare,beet_salad,beignets,bibimbap,bread_pudding,breakfast_burrito,bruschetta,caesarsalad,cannoli,caprese_salad,carrot_cake,ceviche,cheesecake,cheese_plate,chicken_curry,chicken_quesadilla,chicken_wings,chocolate_cake,chocolte_mousse,churros,clam_chowder,club_sandwich,crab_cakes,creme_brulee,croque_madame,cup_cakes,deviled_eggs,donuts,dumplings,edamame,eggs_beneict,escargots,falafel,filet_mignon,fish_and_chips,foie_gras,french_fries,french_onion_soup,french_toast,fried_calamari,fried_rice,frozen_yogrt,garlic_bread,gnocchi,greek_salad,grilled_cheese_sandwich,grilled_salmon,guacamole,gyoza,hamburger,hot_and_sour_soup,hot_dog,huevos_rancheos,hummus,ice_cream,lasagna,lobster_bisque,lobster_roll_sandwich,macaroni_and_cheese,macarons,miso_soup,mussels,nachos,omelette,onion_rings,oysters,pad_hai,paella,pancakes,panna_cotta,peking_duck,pho,pizza,pork_chop,poutine,prime_rib,pulled_pork_sandwich,ramen,ravioli,red_velvet_cake,risotto,smosa,sashimi,scallops,seaweed_salad,shrimp_and_grits,spaghetti_bolognese,spaghetti_carbonara,spring_rolls,steak,strawberry_shortcake,sushi,tacs,takoyaki,tiramisu,tuna_tartare,waffles]
preprocessing:
resizing:
interpolation: bilinear
aspect_ratio: crop
color_mode: rgb # rgb, bgr
tools:
stedgeai:
version: 10.1.0
optimization: balanced
on_cloud: False # Not Available For STM32N6
path_to_stedgeai: D:/16_STEdgeAI/2.1/Utilities/windows/stedgeai.exe
path_to_cubeIDE: D:/15_STM32CubeIDE_1.18.0/stm32cubeide1.17/STM32CubeIDE_1.17.0/STM32CubeIDE/stm32cubeide.exe
deployment:
c_project_path: ../application_code/image_classification/STM32N6/
IDE: GCC
verbosity: 1
hardware_setup:
serie: STM32N6
board: STM32N6570-DK
hydra:
run:
dir: ./src/experiments_outputs/${now:%Y_%m_%d_%H_%M_%S}
mlflow:
uri: ./src/experiments_outputs/mlruns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-23 1:44 AM - edited 2025-05-23 6:23 AM
Hello @LQC_ ,
The Mnist model was trained using grayscale images but the deployment on N6 does not support mnist so I would not advise you to use it.
That being said, I could not reproduce your issue.
- Are you using a usb C to usb C cable? In some case, you can have issues because of the power supply.
- Did you unplug/plug again the board after switching the pins to the left?
- Do you get any errors during the deployment?
You cubeIDE path is very strange, maybe it comes from that.
You may try to create a new clean install of model zoo.
I attached my exact yaml for reference.
Have a good day,
Julian
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
