Is there a tool for labeling/annotating images using custom weights?
Try this:
python detect.py img.jpg --save_txt
If you want to filter detections by class, try this
python detect.py img.jpg --save_txt --class 0 2 3
The example will keep those objects belonging to classes 0, 2, and 3.