Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to realize YOLOE's high-precision detection of customized objects?

2025-08-27 1.6 K

Customizing the training process

YOLOE supports adapting new objects in three ways:

Option 1: Fine-tuning of text prompts (5-minute crash course)

  1. Prepare 10-20 labeled images (COCO format)
  2. modificationsclass_names.txtAdd new category (e.g. "defective_part")
  3. Running:
    python train_text_prompt.py --data custom.yaml --weights yoloe-s.pt

Option 2: Visual cue training (suitable for unspecified categories)

  • Steps:
    1. utilizationgenerate_sam_masks.pyGenerate reference graph segmentation masks
    2. fulfillmenttrain_vp.pyTraining the visual encoder
    3. Load on predictionvp_model.ptfor reference

Option 3: Full model training (highest accuracy)

Need to prepare >1000 labeled drawings:

  1. Convert the dataset:
    python tools/convert2yolo.py --data_path ./custom
  2. Generate a cache:
    python generate_grounding_cache.py --img-path ./train --json-path annotations.json
  3. Start training (A100 video card recommended):
    python train_seg.py --batch 64 --epochs 100

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top