WongKinYiu / yolov9

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

Why do the results show none when I want to test with benchmarks.py? #516

Open skyceeee opened 2 months ago

skyceeee commented 2 months ago

I used this cammend :

!python benchmarks.py --weights /content/drive/MyDrive/yolov9new/480resultperson/480yolov9-s/weights/best.pt --imgsz 480 --data /content/drive/MyDrive/yolov9new/dataset2.yaml

and the result is like this

I0626 05:59:46.257514 3130 analysis_predictor.cc:1838] ======= optimize end ======= I0626 05:59:46.266160 3130 naive_executor.cc:200] --- skip [feed], feed -> x0 I0626 05:59:46.271584 3130 naive_executor.cc:200] --- skip [save_infer_model/scale_0.tmp_0], fetch -> fetch I0626 05:59:46.271602 3130 naive_executor.cc:200] --- skip [save_infer_model/scale_1.tmp_0], fetch -> fetch Forcing --batch-size 1 square inference (1,3,480,480) for non-PyTorch models WARNING ⚠️ Benchmark failure for PaddlePaddle: name 'opt' is not defined

benchmarks: weights=/content/drive/MyDrive/yolov9new/480resultperson/480yolov9-s/weights/best.pt, imgsz=480, batch_size=1, data=/content/drive/MyDrive/yolov9new/dataset2.yaml, device=, half=False, test=False, pt_only=False, hard_fail=False Checking setup... YOLO 🚀 v0.1-104-g5b1ea9a Python-3.10.12 torch-2.3.0+cu121 CUDA:0 (Tesla T4, 15102MiB) Setup complete ✅ (8 CPUs, 51.0 GB RAM, 51.8/201.2 GB disk)

Benchmarks complete (149.89s) Format Size (MB) mAP50-95 Inference time (ms) 0 PyTorch None None None 1 TorchScript None None None 2 ONNX None None None 3 ONNX END2END None None None 4 OpenVINO None None None 5 TensorRT None None None 6 CoreML None None None 7 TensorFlow SavedModel None None None 8 TensorFlow GraphDef None None None 9 TensorFlow Lite None None None 10 TensorFlow Edge TPU None None None 11 TensorFlow.js None None None 12 PaddlePaddle None None None

why is this so?

YOOHYOJEONG commented 1 month ago

Hi, Did you solve it? I'm having the same problem...