Test on local device
To measure performance of the application, install the application from Actcast after
actdk upload.ActDK does not accelerate deep learning models in applications.
Let’s test your application with the device set up in the previous step.
Register Raspberry Pi for tests
Register Raspberry Pi for tests with the following command:
$ actdk remote add <IDENTIFIER_YOU_LIKE>@<REMOTE><IDENTIFIER_YOU_LIKE>- Identifier for your Raspberry Pi.
<REMOTE>- Hostname or IP address of the device.
Build an application
Build the Actcast application with the command below. This command build the application on the Raspberry Pi you selected.
$ actdk build <IDENTIFIER_YOU_LIKE><IDENTIFIER_YOU_LIKE>- The identifier used in the above
actdk remote add.
- The identifier used in the above
See Actdk manual for more detail.
Test application
To check the operation, follow the steps below.
First, create act_settings.json , the application’s runtime settings file, using the following command. Please enter the setting values ββyou want to check for operation.
$ actdk generate act-settingsNext, check the operation of the created application on the Raspberry Pi using the following command. If the application supports display output and its settings are enabled, the image will appear on the display when you connect the Raspberry Pi to the display.
$ actdk run -a <IDENTIFIER_YOU_LIKE>With the -a option, the command redirects stdout strings into your terminal. Without the -a option, the execution of actdk exits, ignoring any application’s output, but the application continues to run on the Pi.
If you want to try Take Photo on actsim, you can get the image in data URL format by executing the following command.
actdk photoactdk stop stops the application on the Raspberry Pi.
$ actdk stop <IDENTIFIER_YOU_LIKE>When you run
actdk runand seeexec user process caused "exec format error", check the following.
- When developing using a scripting language, make sure that shebang is inserted correctly. In Python, you need to write
#!/usr/bin/python3at the beginning of the file- If you are developing in C-like language, check that your program is correctly compiled for arm32 and you are using an appropriate cross-compiler (like
arm-linux-gnueabihf-gcc)
Next: Upload to Actcast
Previous: Setup Actsim