I have two trained models of YoloV5 for pen and pen cap detection (pen.pt, cap.pt).
I want to use both this model for a video. For that I run a command
! python detect.py --weights cap.pt pen.pt --img 640 --conf 0.50 --source VID_20220727_185703.mp4
It runs properly and detects pens and its cap separately but it shows labels as cap only for both.
Is there any way to solve it? without retraining the whole dataset.