WongKinYiu / yolov9

Implementation of paper - YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information
GNU General Public License v3.0
9.04k stars 1.44k forks source link

Error: BaseModel.fuse() got an unexpected keyword argument 'verbose' #372

Open gerarldoindra opened 7 months ago

gerarldoindra commented 7 months ago

can you give me an python example to deploy the custom model

syusama commented 6 months ago

The same err

Kamal-Moha commented 6 months ago

Getting this same error; TypeError: BaseModel.fuse() got an unexpected keyword argument 'verbose'

I have trained a custom Dataset on YOLOv9 following the official colab notebook. After training, I wanted to do inference on some images using ultralytics;

from ultralytics import YOLO

# Load the YOLOv8 model
model = YOLO('/content/yolov9/runs/train/exp/weights/best.pt')

# # Perform inference on an image
results = model('/content/cocoa_new/test_new/img_1168_JPG_jpg.rf.39be982e0468df92cf8a2f980e443798.jpg')

# Extract bounding boxes, classes, names, and confidences
boxes = results[0].boxes.xyxy.tolist()
classes = results[0].boxes.cls.tolist()
names = results[0].names
confidences = results[0].boxes.conf.tolist()

print(names)

I get the error; TypeError: BaseModel.fuse() got an unexpected keyword argument 'verbose'

Need help

P3rCh1 commented 4 months ago

Have you by any chance found a solution yet? I need it too

omerkhanjadoon commented 3 months ago

I am also facing the same problem

Gnoot01 commented 1 month ago

Anyone solved this yet? Why is this an error?