THAT’S what I’m after! Excellent, thanks @janjongboom, is this in the documentation somewhere and have I missed it?
I can now use the runner command via Python with that flag to download my model! My code is below:
# A method to download a model via the Edge Impulse API/CLI.
def download_model(model_name, api_key):
build_cmd = "edge-impulse-linux-runner --download modelfile.eim --api-key " + api_key
subprocess.call(build_cmd, shell=True)
rename_cmd = "sudo mv /home/pi/modelfile.eim /home/pi/modelfile_" + model_name + ".eim"
subprocess.call(rename_cmd, shell=True)
print ('Finished downloading model file for model: ' + model_name)