Update widerface_onnx_evalute.py (#2)
Browse files- Update widerface_onnx_evalute.py (d66a469eb68d0be579448d73a2b0f6a8389a365b)
Co-authored-by: Hongyang Wei <hongywei@users.noreply.huggingface.co>
66 unmodified lines67686970717266 unmodified linesimg_raw = cv2.imread(image_path, cv2.IMREAD_COLOR)# preprocessimg, scale, resize = preprocess(img_raw, INPUT_SIZE, DEVICE)# forwardoutputs = run_ort.run(None, {run_ort.get_inputs()[0].name: img})# postprocess66 unmodified lines676869707172737466 unmodified linesimg_raw = cv2.imread(image_path, cv2.IMREAD_COLOR)# preprocessimg, scale, resize = preprocess(img_raw, INPUT_SIZE, DEVICE)# to NHWCimg = np.transpose(img, (0, 2, 3, 1))# forwardoutputs = run_ort.run(None, {run_ort.get_inputs()[0].name: img})# postprocess
widerface_onnx_evalute.py+2