Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#20413 YOLOE: Fix visual prompt training

Merged
Ghost merged 1 commits into Ultralytics:main from ultralytics:yoloe-vp-fix
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      docs/en/models/yoloe.md
@@ -462,7 +462,7 @@ Model validation on a dataset is streamlined as follows:
 
 
         ```python
         ```python
         from ultralytics import YOLOE
         from ultralytics import YOLOE
-        from ultralytics.models.yolo.yoloe import YOLOEVPTrainer
+        from ultralytics.models.yolo.yoloe import YOLOESegVPTrainer
 
 
         data = dict(
         data = dict(
             train=dict(
             train=dict(
@@ -503,7 +503,7 @@ Model validation on a dataset is streamlined as follows:
             weight_decay=0.025,
             weight_decay=0.025,
             momentum=0.9,
             momentum=0.9,
             workers=4,
             workers=4,
-            trainer=YOLOEVPTrainer,
+            trainer=YOLOESegVPTrainer,  # use YOLOEVPTrainer if converted to detection model
             device="0,1,2,3,4,5,6,7",
             device="0,1,2,3,4,5,6,7",
             freeze=freeze,
             freeze=freeze,
         )
         )
Discard