some errors for yolov8 #2667
Replies: 4 comments 2 replies
-
@daniil-lyakhov, could you take a look? |
Beta Was this translation helpful? Give feedback.
-
Hello @meaquanana, I could not reproduce your error with the latest ultralytics update:
Versions:
Please try to update your environment:
|
Beta Was this translation helpful? Give feedback.
-
I got some errors when I run this commend
|
Beta Was this translation helpful? Give feedback.
-
Could not reproduce: $yolo export model=yolov8n.pt format=openvino int8=True imgsz=[832,1248] rect=True dynamic=True half=True simplify=True
Ultralytics YOLOv8.2.82 🚀 Python-3.8.10 torch-2.4.0+cu121 CPU (Intel Core(TM) i9-10980XE 3.00GHz)
WARNING ⚠️ half=True and int8=True are mutually exclusive, setting half=False.
WARNING ⚠️ INT8 export requires a missing 'data' arg for calibration. Using default 'data=coco8.yaml'.
YOLOv8n summary (fused): 168 layers, 3,151,904 parameters, 0 gradients, 8.7 GFLOPs
PyTorch: starting from 'yolov8n.pt' with input shape (1, 3, 832, 1248) BCHW and output shape(s) (1, 84, 21294) (6.2 MB)
OpenVINO: starting export with openvino 2024.3.0-16041-1e3b88e4e3f-releases/2024/3...
INFO:nncf:NNCF initialized successfully. Supported frameworks detected: torch, openvino
OpenVINO: collecting INT8 calibration images from 'data=coco8.yaml'
Scanning /home/dlyakhov/Projects/nncf/datasets/coco8/labels/val.cache... 4 images, 0 backgrounds, 0 corrupt: 100%|██████████| 4/4 [00:00<?, ?it/s]
OpenVINO: WARNING ⚠️ >300 images recommended for INT8 calibration, found 4 images.
INFO:nncf:24 ignored nodes were found by patterns in the NNCFGraph
INFO:nncf:1 ignored nodes were found by types in the NNCFGraph
INFO:nncf:Not adding activation input quantizer for operation: 166 __module.model.22.dfl/aten::view/Reshape
INFO:nncf:Not adding activation input quantizer for operation: 167 __module.model.22/aten::sigmoid/Sigmoid
INFO:nncf:Not adding activation input quantizer for operation: 180 __module.model.22.dfl/aten::transpose/Transpose
INFO:nncf:Not adding activation input quantizer for operation: 191 __module.model.22.dfl/aten::softmax/Softmax
INFO:nncf:Not adding activation input quantizer for operation: 201 __module.model.22.dfl.conv/aten::_convolution/Convolution
INFO:nncf:Not adding activation input quantizer for operation: 208 __module.model.22.dfl/aten::view/Reshape_1
INFO:nncf:Not adding activation input quantizer for operation: 225 __module.model.22/aten::sub/Subtract
INFO:nncf:Not adding activation input quantizer for operation: 226 __module.model.22/aten::add/Add_6
INFO:nncf:Not adding activation input quantizer for operation: 235 __module.model.22/aten::add/Add_7
244 __module.model.22/aten::div/Divide
INFO:nncf:Not adding activation input quantizer for operation: 236 __module.model.22/aten::sub/Subtract_1
INFO:nncf:Not adding activation input quantizer for operation: 214 __module.model.22/aten::mul/Multiply_3
Statistics collection ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 2/2 • 0:00:00 • 0:00:00
Applying Fast Bias correction ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 63/63 • 0:00:02 • 0:00:00
OpenVINO: export success ✅ 7.1s, saved as 'yolov8n_int8_openvino_model/' (3.5 MB)
Export complete (8.7s)
Results saved to /home/dlyakhov/tmp/tmp
Predict: yolo predict task=detect model=yolov8n_int8_openvino_model imgsz=832,1248 int8
Validate: yolo val task=detect model=yolov8n_int8_openvino_model imgsz=832,1248 data=coco.yaml int8 WARNING ⚠️ non-PyTorch val requires square images, 'imgsz=[832, 1248]' will not work. Use export 'imgsz=1248' if val is required.
Visualize: https://netron.app
💡 Learn more at https://docs.ultralytics.com/modes/export Versions:
Please update your environment by
|
Beta Was this translation helpful? Give feedback.
-
Here is ultralytics export demo : yolo export model=yolov8n.pt format=openvino int8=True.
So i used this by got some errors :
Beta Was this translation helpful? Give feedback.
All reactions