VIM 4 Yolov8n demo custom YOLO run

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Please provide the version of the system here:

In the tutorial for the demo of Cpp Yolov8n it is specified that the model should have 144 output layer but what should I do if I want to have a custom amount of classes? What is the best way to run such Yolo on VIM4? And also why is there a limitation on only 144 layers being the needed size?