IrDIE / YOLO8_quantization

MIT License
14 stars 0 forks source link

problem with inference #2

Open Ghezzo98 opened 3 months ago

Ghezzo98 commented 3 months ago

I have my quantized YoloV8m and I'm trying make some inference but I'm facing some errors... When I run those lines of code: " ov_model = YOLO("YOLO8_quantization/quantization_OpenVino/quantized_res/best_noAC_openvino_int8_model/")

results = ov_model("YOLO8_quantization/quantization_OpenVino/foto_prova") "

I get this error: " TypeError: unsupported operand type(s) for &=: 'bool' and 'str' "

Same error if I try to run those lines: " from ultralytics import YOLO model = YOLO('YOLO8_quantization/quantization_OpenVino/quantized_res/') model.predict('YOLO8_quantization/quantization_OpenVino/foto_prova' , save = True , save_txt = True) "

As for the path to the quantized model, I already tried to put:

am I doing something wrong?

IrDIE commented 3 months ago

@Ghezzo98 Can you provide full error trace?

IrDIE commented 2 months ago

https://github.com/ultralytics/ultralytics/issues/8282 Found that bug

will refactor code later if you still have problem rename folder adding "_openvino_model"