leondgarse / Keras_insightface

Insightface Keras implementation
MIT License
234 stars 56 forks source link

onnxruntime error log #61

Open nadongjin opened 2 years ago

nadongjin commented 2 years ago

from eval_folder import Face_detection

default size is 640 ----> No Problem

det = Face_detection(det_shape=640)

but... det = Face_detection(det_shape=320) is error code [The det_shape size should be applicable in various ways. The reason is that the accuracy can be improved by changing the det_shape size in the case of a large face or others in a small image. However, even if an error occurs, it actually works.] Thank you....

2021-12-28 14:54:56.6901089 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {800,10} does not match actual shape of {200,10} for output 500 2021-12-28 14:54:56.6904434 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {800,4} does not match actual shape of {200,4} for output 497 2021-12-28 14:54:56.6907553 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {800,1} does not match actual shape of {200,1} for output 494 2021-12-28 14:54:56.6912094 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {3200,10} does not match actual shape of {800,10} for output 477 2021-12-28 14:54:56.6915326 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {3200,4} does not match actual shape of {800,4} for output 474 2021-12-28 14:54:56.6918425 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {3200,1} does not match actual shape of {800,1} for output 471 2021-12-28 14:54:56.6924277 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {12800,10} does not match actual shape of {3200,10} for output 454 2021-12-28 14:54:56.6932614 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {12800,4} does not match actual shape of {3200,4} for output 451 2021-12-28 14:54:56.6935837 [W:onnxruntime:, execution_frame.cc:770 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {12800,1} does not match actual shape of {3200,1} for output 448 ..............................

leondgarse commented 2 years ago

Ya, SCRFD is trained on 640x480 resolution, so onnx also expecting det_shape=640. It's said SCRFD only works better at 640: SCRFD vs TinaFace vs Retinaface #1639.