ThasnimolVSam22d007
H ey, masks are used in models that use anchors. It means that you are using an anchor-based model and that you've wrongly specified the masks. Mask should look like "mask[input_width/stride]" : [anchor indices], where stride corresponds to the downsampling factor of the head.
If you are not that familiar with neural networks, it's a bit complicated, so if you use YoloV5-YoloV8, I'd suggest you just use tools.luxonis.com and upload the trained .pt weights there. The downloaded ZIP will contain .blob and proper anchor and mask settings in the .json file.