GithubHelp home page GithubHelp logo

Comments (12)

GRATTINSTM avatar GRATTINSTM commented on September 26, 2024 1

Hello @Darshcg,

Which Cube.AI version are you using (tools/stm32ai/version in the YAML file) ? Can you make a try with the version 8.1.0 ?
If the cloud computation still doesn't work could you install Cube.AI 8.1.0 locally and make a try (tools/stm32ai/on_cloud: False) ?

Guillaume

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Hi @GRATTINSTM,

Thank you for your response!

I am using Cube.AI version = 8.1.0, with on_cloud: True.

Yeah sure, I will try installing Cube.AI 8.1.0 locally and set on_cloud: False.

Thanks!

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Hi @GRATTINSTM,

I tried the local installation of Cube.AI 8.1.0 and then setting on_cloud: False, then also I am facing the same issue!

building.. cm7.release
[returned code = 1 - FAILED]
flashing.. cm7.release STM32H747I-DISCO
Board programming failed: "Error: File does not exist: STM32H747I-DISCO_GettingStarted_ObjectDetection_CM7.elf"

from stm32ai-modelzoo.

GRATTINSTM avatar GRATTINSTM commented on September 26, 2024

Did you follow all the steps of the readme ? Could you sent the user_config.yaml file ?

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Hi @GRATTINSTM, Yeah, I followed all the steps of readme(https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/object_detection/deployment), below is my user_config.yaml:

user_config.yaml.txt

from stm32ai-modelzoo.

GRATTINSTM avatar GRATTINSTM commented on September 26, 2024

It seems that many fields are not correctly filled. Please copy/paste the values of each field (except the tools paths) from the readme.

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Hi @GRATTINSTM, I put all the same for each field(except the tools paths), but still I am getting the same error. No Sure exactly.

user_config_updated.yaml.txt

I am also attaching the log below:

compiling.. "ssd_mobilenet_v2_fpnlite_035_192_int8_tflite" session
 model_path  : ['../pretrained_models/ssd_mobilenet_v2_fpnlite/ST_pretrainedmodel_public_dataset/coco_2017_person/ssd_mobilenet_v2_fpnlite_035_192/ssd_mobilenet_v2_fpnlite_035_192_int8.tflite']
 tools       : 8.1.0 (x-cube-ai pack)
 target      : "STM32H747I-DISCO Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/cm7.release/stm32h7)
 options     : ../../stm32ai_application_code/object_detection/mempools_STM32H747I-DISCO.json
 results -> RAM=578,812 IO=0:0 WEIGHTS=1,007,872 MACC=122,776,743 RT_RAM=89,604 RT_FLASH=216,626 LATENCY=0.000
[INFO]: Dispatch weights between internal and external flash to fit the large model
[INFO] : Optimized C code + Lib/Inc files generation done.
[INFO] : Building the STM32 c-project..
deploying the c-project.. "STM32H747I-DISCO Getting Started Object Detection (STM32CubeIDE)" (stm32_cube_ide/cm7.release/stm32h7)
updating.. cm7.release
 -> s:copying file.. "network_config.h" to ../../stm32ai_application_code/object_detection/Application/Network/Inc/network_config.h
 -> s:copying file.. "network.h" to ../../stm32ai_application_code/object_detection/Application/Network/Inc/network.h
 -> s:copying file.. "network.c" to ../../stm32ai_application_code/object_detection/Application/Network/Src/network.c
 -> s:copying file.. "network_data.h" to ../../stm32ai_application_code/object_detection/Application/Network/Inc/network_data.h
 -> s:copying file.. "network_data.c" to ../../stm32ai_application_code/object_detection/Application/Network/Src/network_data.c
 -> s:copying file.. "network_data_params.h" to ../../stm32ai_application_code/object_detection/Application/Network/Inc/network_data_params.h
 -> s:copying file.. "network_data_params.c" to ../../stm32ai_application_code/object_detection/Application/Network/Src/network_data_params.c
 -> s:copying file.. "network_generate_report.txt" to ../../stm32ai_application_code/object_detection/Application/Network/Src/network_generate_report.txt
 -> s:removing dir.. ../../stm32ai_application_code/object_detection/Middlewares/ST/STM32_AI_Runtime/Lib
 -> s:copying dir.. "Lib" to ../../stm32ai_application_code/object_detection/Middlewares/ST/STM32_AI_Runtime/Lib
 -> s:removing dir.. ../../stm32ai_application_code/object_detection/Middlewares/ST/STM32_AI_Runtime/Inc
 -> s:copying dir.. "Inc" to ../../stm32ai_application_code/object_detection/Middlewares/ST/STM32_AI_Runtime/Inc
 -> u:copying file.. "ai_model_config.h" to ../../stm32ai_application_code/object_detection/Application/STM32H747I-DISCO/Inc/CM7/ai_model_config.h
 -> updating cproject file "/home/darshan/stm32ai-modelzoo/stm32ai_application_code/object_detection/Application/STM32H747I-DISCO/STM32CubeIDE/CM7" with "NetworkRuntime810_CM7_GCC.a"
building.. cm7.release
[returned code = 1 - FAILED]
flashing.. cm7.release STM32H747I-DISCO
Board programming failed: "Error: File does not exist: STM32H747I-DISCO_GettingStarted_ObjectDetection_CM7.elf"

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Just to mention that: I tried image classification application: and it generates: STM32H747I-DISCO_GettingStarted_ImageClassification_CM7.elf but not getting generated for Object detection application

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Hi @GRATTINSTM,

Seems like the issue was with Linux and STM IDE and Cube.AI version compatibility. I did the setup in windows with IDE version = 1.14.0 and Cube AI version = 8.1.0 and it works fine!

Thank you!

from stm32ai-modelzoo.

GRATTINSTM avatar GRATTINSTM commented on September 26, 2024

Hi @Darshcg,

I'm glad it works. We will investigate the reason why it is not working on your Linux setup.

Guillaume

from stm32ai-modelzoo.

GRATTINSTM avatar GRATTINSTM commented on September 26, 2024

Did you install the tools by following this Wiki?

from stm32ai-modelzoo.

Darshcg avatar Darshcg commented on September 26, 2024

Hi @GRATTINSTM,

Thank you for your response.

I actually followed the links provided in the Readme for the software requirements:
https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/deployment/README.md

image

from stm32ai-modelzoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.