Using an AscendCL Sample Project

MindStudio 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: Refer to Creating a Sample Project to obtain the required AscendCL sample project from Gitee, and refer to Importing an Application Project to import it to MindStudio.
  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.