Using an AscendCL Sample Project

MindStudio IDE provides sample projects developed based on AscendCL. You can create one as follows:

Figure 1 Process of creating an AscendCL sample project

The description of each step is as follows:

  1. Environment setup: Refer to Before You Start to configure environment variables.
  2. Data preparation: Prepare the dataset required by your model, for example, images required by an image detection model.
  3. Sample project code obtaining and importing: Obtain the required AscendCL sample project, and import it to MindStudio IDE by referring to importing an Application Project.
  4. Model obtaining: Obtain the required model by referring to the readme file of the sample project on Gitee and upload it to the environment. For more models, visit the ModelZoo.
  5. Model conversion: Refer to Model Conversion and Tuning to convert the model to an .om file.
  6. Application build and running: Refer to Building and Running an Application Project to build and run the application.