Forgot to link the yolo11 guide I for the code snippit from.
Also for any future users coming across this - for clarity, my error, and looking at the OP’s error message, it is coming from the optimization step, not the compile to hef step as the title might suggest.