Assets & MPK setup
This page describes where tutorials/tests look for model packs (MPKs) and sample assets, and how to provide them locally.
Ensure sima-cli is on PATH
Some tests invoke sima-cli from non-interactive shells. Use this once after
installing sima-cli:
SIMA_CLI_BIN_DIR="<path-to-sima-cli-bin>"
grep -Fqx "export PATH=\"${SIMA_CLI_BIN_DIR}:\$PATH\"" ~/.bashrc || echo "export PATH=\"${SIMA_CLI_BIN_DIR}:\$PATH\"" >> ~/.bashrc
source ~/.bashrc
Then verify:
/bin/sh -c 'command -v sima-cli'
MPK locations and environment variables
ResNet50
Search order:
SIMA_RESNET50_TAR(absolute or relative path)tmp/resnet_50_mpk.tar.gz- Local files moved into
tmp/if found:resnet_50_mpk.tar.gzresnet-50_mpk.tar.gz
Download (if sima-cli is available):
sima-cli modelzoo -v 2.0.0 get resnet_50
YOLOv8 (v8s)
Search order:
SIMA_YOLO_TARtmp/yolo_v8s_mpk.tar.gz- Common local names (moved into
tmp/if found):yolo_v8s_mpk.tar.gzyolo-v8s_mpk.tar.gzyolov8s_mpk.tar.gzyolov8_s_mpk.tar.gz
Download (if sima-cli is available):
sima-cli modelzoo -v 2.0.0 get yolo_v8s
Sample images
Tutorials ship with sample images under tutorials/assets/. Cpp tutorials
resolve image paths in this order:
--image <path>CLI override.SIMA_NEAT_TUTORIAL_ASSETSenv var (directory path)./usr/share/sima-neat/tutorials/assets/(DEB install)./neat-resources/core-src/tutorials/assets/(eLxr SDK).<repo>/tutorials/assets/(source checkout fallback).
The shipped defaults are ilena_488.jpg, fronalpstock_1330.jpg, and
lichtenstein_512.png. Test suites may still download additional assets
under tmp/ — see their own documentation.
You can override the COCO image URL used by tests with:
SIMA_COCO_URL=<custom_url>
Where tests download to
Tests and examples generally place downloaded assets under tmp/ in the repo
root. Tutorials will skip gracefully if required assets are missing.
Troubleshooting
- If a tutorial prints
SKIP: missing ..., provide the asset or pass a flag (e.g.,--mpk <path>,--image <path>). - If
sima-cliis unavailable, set the env vars to point to local MPKs.